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++/9298: [3.4 regression] [new parser] ICE with function-pointer-type template args


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


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