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++/10713: ICE (segfault) after "error: template declaration of 'typedef ....'"


Synopsis: ICE (segfault) after "error: template declaration of 'typedef ....'"

Responsible-Changed-From-To: bajo->unassigned
Responsible-Changed-By: bajo
Responsible-Changed-When: Tue May 13 18:12:23 2003
Responsible-Changed-Why:
    done with analysys
State-Changed-From-To: open->closed
State-Changed-By: bajo
State-Changed-When: Tue May 13 18:12:23 2003
State-Changed-Why:
    Redux, ICE with GCC 3.3:
    --------------------------------------------------
    template <INVALID Q>
    struct tree_iterator 
    {
       int a;
       typedef int iterator_category;
    };
    --------------------------------------------------
    pr10713.cpp:1: error: syntax error before `Q'
    pr10713.cpp:5: error: template declaration of `typedef int iterator_category'
    pr10713.cpp:5: internal compiler error: Segmentation fault
    Please submit a full bug report,
    
    but it's fixed in mainline:
    
    pr10713.cpp:1: error: expected type-name
    pr10713.cpp:1: error: expected type-name
    pr10713.cpp:1: error: ISO C++ forbids declaration of `Q' with no type

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10713


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