https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77754
Bug ID: 77754
Summary: internal compiler error : tree code 'call_expr' is not
supported in LTO streams
Product: gcc
Version: 5.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: laurent.alfonsi at st dot com
Target Milestone: ---
Created attachment 39695
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39695&action=edit
testcase
Hi,
I am obtaining a ICE in LTO phase, when passing the enclosed example using a
nested function with a variable length array parameter :
---------
<<reduce.c>>
int fn3();
void fn1() {
void fn2(int[][fn3()]);
}
---------
I have been able to reproduce with a x86_64 native gcc :
$ gcc -c -flto reduce.c
reduce.c:5:1: internal compiler error: tree code 'call_expr' is not supported
in LTO streams
}
My gcc configuration is very simple :
$ gcc -v
Configured with: ../configure --prefix=<prefix> --with-gnu-as --with-gnu-ld
--enable-shared --enable-languages=c,c++ --disable-libgcj --disable-nls
--with-gmp=<prefix> --with-mpfr=<prefix> --with-mpc=<prefix>
--with-isl=<prefix> --with-cloog=<prefix> --disable-bootstrap --enable-lto
--with-local-prefix=<prefix>
Thread model: posix
gcc version 5.3.0 (GCC)
It well passes with gcc 4.9.0 to 4.9.4.
Regards,