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

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #66054|0                           |1
        is obsolete|                            |
  Attachment #66062|0                           |1
        is obsolete|                            |

--- Comment #4 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 66063
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66063&action=edit
Reduced testcase

[apinski@xeond2 upstream-gcc-new]$ ~/upstream-gcc/bin/gcc -O3 t.cc -flto
t.cc: In member function ‘virtual o* o::j() const’:
t.cc:49:18: warning: no return statement in function returning non-void
[-Wreturn-type]
   49 | o *o::j() const {}
      |                  ^
t.cc: In instantiation of ‘void g< <template-parameter-1-1> >::operator*()
[with <template-parameter-1-1> = int]’:
t.cc:40:7:   required from here
   40 |   *p1.i;
      |       ^
t.cc:10:9: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
   10 |       b("");
      |         ^~
t.cc: In instantiation of ‘void g< <template-parameter-1-1> >::operator*()
[with <template-parameter-1-1> = f]’:
t.cc:45:7:   required from here
   45 |   *p1.l;
      |       ^
t.cc:10:9: warning: ISO C++ forbids converting a string constant to ‘char*’
[-Wwrite-strings]
   10 |       b("");
      |         ^~
during IPA pass: inline
lto1: internal compiler error: in remove_unreachable_nodes, at ipa.cc:592
0x2a15c1f internal_error(char const*, ...)
       
/home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostic-global-context.cc:787
0xab9715 fancy_abort(char const*, int, char const*)
        /home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostics/context.cc:1813
0x874d9f symbol_table::remove_unreachable_nodes(_IO_FILE*)
        /home/apinski/src/upstream-gcc-git/gcc/gcc/ipa.cc:592
0x28660ee ipa_inline
        /home/apinski/src/upstream-gcc-git/gcc/gcc/ipa-inline.cc:2929
0x28660ee execute
        /home/apinski/src/upstream-gcc-git/gcc/gcc/ipa-inline.cc:3445
/home/apinski/upstream-gcc/libexec/gcc/x86_64-pc-linux-gnu/17.0.0/lto1 -quiet
-dumpbase ./a.wpa -mtune=generic -march=x86-64 -O3 -O3 -fno-openmp -fno-openacc
-fno-pie -fcf-protection=none -fltrans-output-list=/tmp/ccDgGH03.ltrans.out
-fwpa -fresolution=/tmp/cclFIasE.res -flinker-output=exec @/tmp/cc9IsD2G
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: /home/apinski/upstream-gcc/bin/gcc returned 1 exit
status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

Reply via email to