https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66468

--- Comment #16 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Mikhail Maltsev from comment #14)
> Another reproducer:
> 
> $ cat genmodes.cc 
> inline char *strchr(const char *, int) __asm("strchr");
> inline char *strchr(const char *, int)
> {
>   return __builtin_strchr(0, 0);
> }
> 
> int make_complex_modes()
> {
>   if (strchr(0, 0))
>     return 1;
> }
> 
> $ cc1plus -O -flto genmodes.cc -quiet -o - | as -o genmodes.o
> $ lto1 genmodes.o -g -o /dev/null -quiet
> genmodes.cc: In function 'make_complex_modes':
> genmodes.cc:11:1: internal compiler error: in gen_inlined_subroutine_die, at
> dwarf2out.c:19910

This one i fixed recently.

Reply via email to