c++/7319: misleading template in error message

bangerth@dealii.org bangerth@dealii.org
Thu Nov 21 17:35:00 GMT 2002

Synopsis: misleading template in error message

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Nov 21 17:31:05 2002
    Confirmed. Just to clarify (because I think the synopsis is
    misleading): This code
    struct A
      template <typename T> void Foo (T) const;
      template <typename T> void Foo (T, int = 0);
    template <> void A::Foo (int);
    is actually illegal, because it declares the existence
    of a specialization for a function that does not exist
    (since the one-parameter foo is const), no?


More information about the Gcc-bugs mailing list