The following code generates a parse error:

struct Foo
{
  template <typename T> Foo();
};

template <> Foo::Foo<int>()
{
}


-- 
           Summary: g++ issues parse error on constructor template
                    specialization.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: seefeld at sympatico dot ca


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24848

Reply via email to