------- Comment #2 from reichelt at gcc dot gnu dot org 2007-12-26 19:04 ------- Confirmed. Here's a reduced testcase:
======================================= struct A { int x; int& getX () { return x; } }; template<int> void foo() { A a; #pragma omp for for (int i=0; i<a.getX(); ++i) ; } void bar() { foo<0>(); } ======================================= The bug appeared on mainline between 2007-05-13 and 2007-06-16. -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |monitored Last reconfirmed|0000-00-00 00:00:00 |2007-12-26 19:04:27 date| | Summary|internal compiler error: in |[4.3 regression] ICE in |tsubst_copy |tsubst_copy with OpenMP Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33890