[Bug c++/28999] New: [4.0/4.1/4.2 regression] ICE on invalid use of typename
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Sep 10 10:07:00 GMT 2006
The following invalid code snippet triggers an ICE since GCC 3.4.0:
======================================
namespace N
{
template<int> void foo();
}
template<int> struct A
{
friend void typename N::foo<0>();
};
======================================
bug.cc:8: internal compiler error: in make_typename_type, at cp/decl.c:2818
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1/4.2 regression] ICE on invalid use of typename
Product: gcc
Version: 4.2.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=28999
More information about the Gcc-bugs
mailing list