This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32674] New: [4.1/4.2/4.3 regression] ICE in lvalue_p_1 initialising static variable inside template class
- From: "lmillward at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2007 11:33:33 -0000
- Subject: [Bug c++/32674] New: [4.1/4.2/4.3 regression] ICE in lvalue_p_1 initialising static variable inside template class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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