This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3478: ICE when using enum from template class
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 4 Dec 2002 13:16:08 -0000
- Subject: Re: c++/3478: ICE when using enum from template class
- Reply-to: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
The following reply was made to PR c++/3478; it has been noted by GNATS.
From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, jthorn@thp.univie.ac.at, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/3478: ICE when using enum from template class
Date: Wed, 4 Dec 2002 15:08:15 +0100
Hi,
a cleaned-up testcase is the following (crashes 2.95.x, 3.0.x,
3.2-branch and mainline):
----------------------------snip here--------------------------
template <typename T> struct A
{
enum E {};
};
template <typename T> void foo()
{
enum A<void>::E e1; // OK
typename A<T>::E e2; // OK
enum A<T>::E e3; // crashes
}
----------------------------snip here--------------------------
Regards,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3478