c++/3793: template class rejected as template arg to a template member

gdr@gcc.gnu.org gdr@gcc.gnu.org
Mon Aug 13 13:53:00 GMT 2001


Synopsis: template class rejected as template arg to a template member

Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Mon Aug 13 13:53:02 2001
Responsible-Changed-Why:
    Boo!
State-Changed-From-To: open->closed
State-Changed-By: gdr
State-Changed-When: Mon Aug 13 13:53:02 2001
State-Changed-Why:
    This is not a compiler bug; it is an error in your proggram.
    This is one of the rare places where Standard C++ requires the following syntax
    
       return A<T>::template helper<B>();
    
    Yes, it is a bit weird, but that is the way C++ reads.
    
    -- Gaby

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3793&database=gcc



More information about the Gcc-bugs mailing list