https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66859
Bug ID: 66859
Summary: internal compiler error: in lower_stmt
Product: gcc
Version: 5.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: t at sharklasers dot com
Target Milestone: ---
Host: x86_64
Created attachment 35969
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35969&action=edit
minimal example
$ g++ -fcilkplus test.cpp
test.cpp: In function ‘void func(std::__cxx11::string)’:
test.cpp:5:9: warning: statement has no effect [-Wunused-value]
line;
^
test.cpp: In function ‘<built-in>’:
test.cpp:11:30: internal compiler error: in lower_stmt, at gimple-low.c:396
cilk_spawn func(line);
^
0xfe0d53 lower_stmt
../../gcc-5.1.0/gcc/gimple-low.c:396
0xfe0d53 lower_sequence
../../gcc-5.1.0/gcc/gimple-low.c:227
0xfe0dd2 lower_try_catch
../../gcc-5.1.0/gcc/gimple-low.c:469
0xfe0dd2 lower_stmt
../../gcc-5.1.0/gcc/gimple-low.c:291
0xfe0dd2 lower_sequence
../../gcc-5.1.0/gcc/gimple-low.c:227
0xfe0b5c lower_stmt
../../gcc-5.1.0/gcc/gimple-low.c:296
0xfe0b5c lower_sequence
../../gcc-5.1.0/gcc/gimple-low.c:227
0xfe09b1 lower_gimple_bind
../../gcc-5.1.0/gcc/gimple-low.c:441
0xfe180d lower_function_body
../../gcc-5.1.0/gcc/gimple-low.c:131
0xfe180d execute
../../gcc-5.1.0/gcc/gimple-low.c:205
The error does not appear if func takes the string by reference.
openSUSE 13.2 (Harlequin) (x86_64)
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=local/gcc5.1/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-5.1.0/configure --prefix=local/gcc5.1
--enable-languages=c,c++,fortran --enable-gold=yes --enable-ld=yes --enable-lto
--enable-bootstrap --disable-multilib
Thread model: posix
gcc version 5.1.0 (GCC)