c++/10713: ICE (segfault) after "error: template declaration of 'typedef ....'"

giovannibajo@libero.it giovannibajo@libero.it
Tue May 13 18:19:00 GMT 2003


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



More information about the Gcc-bugs mailing list