The following code snippet (similiar to PR31992) triggers an ICE since 4.1.x onwards:
----------------------- snip ----------------------- class C { static const int j = 3; }; template<int> class A { static const int i; }; template<int N> const int A<N>::i(C::j); ----------------------- snip ----------------------- Error message: bug.cc:11: internal compiler error: in lvalue_p_1, at cp/tree.c:148 -- Summary: [4.1/4.2/4.3 regression] ICE in lvalue_p_1 initialising static variable inside template class Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lmillward at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32674