This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15679] New: template ICE
- From: "dfredoui at irisa dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2004 10:28:14 -0000
- Subject: [Bug c++/15679] New: template ICE
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
// Here is the simplified test case that leads to the ICE
// I do think it is legal code, but perhaps I am wrong.
// My platform is :
// SunOS Release 5.8 Version Generic_108528-20 [UNIX(R) System V Release 4.0]
// on a sparc SunBlade 2500
// The resulting line of compilation is:
// ----->>
// bug.cpp:6: internal compiler error: in grokdeclarator, at cp/decl.c:10291
// Please submit a full bug report,
// with preprocessed source if appropriate.
// See <URL:http://gcc.gnu.org/bugs.html> for instructions.
// -----<<
struct foo1{
template<typename T> struct foo2{};
};
struct foo3 {
typedef foo1::template foo2<int> foo2int;
};
--
Summary: template ICE
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dfredoui at irisa dot fr
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15679