This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13359] New: ICE (segfault) on (illegaly) defining an undeclared member class of a class template
- From: "meinlschmidt at informatik dot uni-erlangen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2003 18:21:45 -0000
- Subject: [Bug c++/13359] New: ICE (segfault) on (illegaly) defining an undeclared member class of a class template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
struct Base {};
template<typename Mesh> // <-- w/o this it gives a proper error msg
struct Outer {
// forgot to declare Inner here...
};
template<typename Mesh> // vvvvvvvvvvv w/o this it gives a proper error msg
struct Outer<Mesh>::Inner: public Base { // internal compiler error: Segmentation fault
// ^^^^^ accidentally undeclared
};
--- snip ---
Without inheriting Base -- proper error message
Without Outer being a template -- proper error message
--
Summary: ICE (segfault) on (illegaly) defining an undeclared
member class of a class template
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: meinlschmidt at informatik dot uni-erlangen dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: What the...? Linux, i686
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13359