c++/9298: [3.4 regression] [new parser] ICE with function-pointer-type template args

reichelt@igpm.rwth-aachen.de reichelt@igpm.rwth-aachen.de
Wed Jan 15 09:56:00 GMT 2003


Synopsis: [3.4 regression] [new parser] ICE with function-pointer-type template args

State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Wed Jan 15 01:48:42 2003
State-Changed-Why:
    Confirmed.
    
    BTW, the code is illegal (there are three bugs):
    
    template<int> static int foo();
                  ^^^^^^
    template   int CPU::dispatch<&template foo<2> > ();
            ^^                    ^^^^^^^^
    
    The correct verion would be
    
    template<int> int foo();
    template<> int CPU::dispatch<&foo<2> > ();

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



More information about the Gcc-bugs mailing list