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]

Re: c++/959: Problems with template specialisation and namespaces


Synopsis: Problems with template specialisation and namespaces

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Aug 12 08:30:24 2001
State-Changed-Why:
    The submitted testcase is not legal.  However the correct
    code below fails to compile and should be fixed:
    
    namespace Foo
    {
        template<class T> void bar(const T);
        template<> void bar(const int);
    }
    
    template<class T>
    void Foo::bar(const T arg) { }
    
    template<>
    void Foo::bar(const int arg) { }
    

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


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