This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/3478: ICE when using enum from template class


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]