[Bug c++/32674] New: [4.1/4.2/4.3 regression] ICE in lvalue_p_1 initialising static variable inside template class
lmillward at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jul 8 11:33:00 GMT 2007
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
More information about the Gcc-bugs
mailing list