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++/8736: internal compile error at a typedef to a typedef in a template sub struct of a template struct from a template function


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


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