https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67522
Bug ID: 67522 Summary: OpenMP ICE in type_dependent_expression_p Product: gcc Version: 5.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- // { dg-do compile } // { dg-options "-fopenmp" } struct S; template <int N> void foo (void) { #pragma omp simd linear (S) // { dg-error "is not a variable in clause" } for (int i = 0; i < 16; i++) ; #pragma omp target map (S[0:10]) // { dg-error "is not a variable in" } ; #pragma omp task depend (inout: S[0:10]) // { dg-error "is not a variable in" } ; } void bar () { foo <0> (); } ICEs in type_dependent_expression_p, which doesn't like to be called with a TYPE_DECL.