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

--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #2)
> Created attachment 46775 [details]
> Reduced source files
> 
> $ gcc -c -flto 5.i -o 5.o && c++ -O2 -flto=16 -shared -o zynaddsubfx 1.ii
> 2.ii 3.ii 4.ii 5.o
> ...
> 1.ii: In member function ‘activeDesc’:
> 1.ii:37:31: error: invalid conversion in gimple call
>    37 | NotePool::constActiveDescIter NotePool::activeDesc() const {
>       |                               ^
> struct constActiveDescIter
> 
> struct activeDescIter
> 
> # .MEM_4 = VDEF <.MEM_3(D)>
> retval.0 = activeDesc (this_2(D)); [tail call]
> during GIMPLE pass: fixup_cfg
> 1.ii:37:31: internal compiler error: verify_gimple failed
> 0xcd4991 verify_gimple_in_cfg(function*, bool)
>       /home/marxin/Programming/gcc/gcc/tree-cfg.c:5427
> 0xbb3cef execute_function_todo
>       /home/marxin/Programming/gcc/gcc/passes.c:1983
> 0xbb4a9e execute_todo
>       /home/marxin/Programming/gcc/gcc/passes.c:2037
> Please submit a full bug report,
> with preprocessed source if appropriate.
> Please include the complete backtrace with any bug report.
> See <https://gcc.gnu.org/bugs/> for instructions.
> make: *** [/tmp/cc4IuhNp.mk:5: /tmp/zynaddsubfx.Q6TfM0.ltrans1.ltrans.o]
> Error 1
> make: *** Waiting for unfinished jobs....
> lto-wrapper: fatal error: make returned 2 exit status
> compilation terminated.
> /usr/bin/ld: error: lto-wrapper failed
> collect2: error: ld returned 1 exit status

This issue is gone since r276416.

Reply via email to