This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11907] New: ICE on illegal code: using a class template instead of a class
- From: "o dot kullmann at swansea dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2003 18:26:52 -0000
- Subject: [Bug c++/11907] New: ICE on illegal code: using a class template instead of a class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11907
Summary: ICE on illegal code: using a class template instead of a
class
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: o dot kullmann at swansea dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
namespace N { template <class T> struct X {}; }
template <class T> struct Y { typedef typename N::X tag; };
int main() { Y<int> y; }
compiled without options yields:
internal compiler error: Segmentation fault
Tried: Versions 3.2.1, 3.3, 3.3.1 --- all identical.