c++/8736: internal compile error at a typedef to a typedef in a template sub struct of a template struct from a template function

reichelt@igpm.rwth-aachen.de reichelt@igpm.rwth-aachen.de
Thu Nov 28 13:31:00 GMT 2002


Synopsis: internal compile error at a typedef to a typedef in a template sub struct of a template struct from a template function

State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Wed Nov 27 15:53:18 2002
State-Changed-Why:
    Confirmed.
    
    The code crashes everything since gcc 3.0, and is rejected
    by gcc 2.95.3.
    
    The code isn't quite conforming, however, the line under the
    comment lacks a "template" - it should read:
        typedef typename A<T>::template GetType<T>::blupps blupps_t;
    With this correction the code compiles fine on all releases since 2.95.3.
    
    BTW, the problem looks very similar to the one in PR 8061.

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



More information about the Gcc-bugs mailing list