This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34919] New: [4.3 regression] ICE with invalid use of parameter pack
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2008 00:23:08 -0000
- Subject: [Bug c++/34919] New: [4.3 regression] ICE with invalid use of parameter pack
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid testcase triggers an ICE on mainline:
=====================================================
template<int... N> struct A
{
static void foo()
{
int i = N;
}
};
void bar()
{
A<0>::foo();
}
=====================================================
bug.cc: In static member function 'static void A<N>::foo() [with int ...N =
0]':
bug.cc:11: instantiated from here
bug.cc:5: internal compiler error: in gimplify_expr, at gimplify.c:6108
Please submit a full bug report, [etc.]
--
Summary: [4.3 regression] ICE with invalid use of parameter pack
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34919