https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79512
Bug ID: 79512 Summary: ICE: Segfault in gimple_build_call_1, at gimple.c:218 Product: gcc Version: 7.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Version 6/7 (on x86_64 GNU/Linux) with option -fopenmp-simd ICEs for testsuite files ./g++.dg/gomp/target-teams-1.C and ./g++.dg/gomp/teams-1.C. Last one reduced : $ cat z1.cc void bar () { #pragma omp target #pragma omp teams { int i; goto ok1; for (i = 0; i < 10; ++i) { ok1: break; } } } $ gcc-7-20170212 -fopenmp -c z1.cc $ gcc-7-20170212 -fopenmp-simd -c z1.cc z1.cc: In function 'void bar()': z1.cc:4:11: internal compiler error: Segmentation fault #pragma omp target ^~~ 0xde341f crash_signal ../../gcc/toplev.c:333 0xb3456d gimple_build_call_1 ../../gcc/gimple.c:218 0xb3456d gimple_build_call_vec(tree_node*, vec<tree_node*, va_heap, vl_ptr>) ../../gcc/gimple.c:235 0xcb6f33 expand_omp_target ../../gcc/omp-expand.c:7535 0xcc1ebc expand_omp ../../gcc/omp-expand.c:7938 0xcc42bd execute_expand_omp ../../gcc/omp-expand.c:8118