https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66820
Bug ID: 66820 Summary: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:910 Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: simon at sconseil dot fr CC: jakub at gcc dot gnu.org Target Milestone: --- Created attachment 35938 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35938&action=edit Code to reproduce the bug Hi, I get this error when compiling a C code using OpenMP, since the upgrade to GCC 5.1, it was compiling without error with GCC 4.9. I'm using Archlinux. The attached merging.c file is the C code where I removed everything I could to get a minimal code to reproduce the bug. If I remove the strcat call in the omp parallel block (and replace it with the commented sprintf) then it compiles. The C code is wrapped in a python module, below is the compilation log: $ LANG=C python setup.py build_ext -i running build_ext building 'libCmethods' extension gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -I/usr/include/python2.7 -c src/tools.c -o build/temp.linux-x86_64-2.7/src/tools.o -freport-bug -fopenmp gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -I/usr/include/python2.7 -c src/subtract_slice_median.c -o build/temp.linux-x86_64-2.7/src/subtract_slice_median.o -freport-bug -fopenmp gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -I/usr/include/python2.7 -c src/merging.c -o build/temp.linux-x86_64-2.7/src/merging.o -freport-bug -fopenmp src/merging.c: In function 'mpdaf_merging_median._omp_fn.0': src/merging.c:36:1: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:910 } ^ Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.archlinux.org/> for instructions. Preprocessed source stored into /tmp/simon/ccsj0rjP.out file, please attach this to your bugreport. error: command 'gcc' failed with exit status 1