show_bug.cgi?id=11270

             Bug #: 11270
           Summary: Template specialisation inside class accepted
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


The following code compiles with clang but not gcc 4.4.6 or 4.5.3 for me:

cat > foo.cc <<EOF
template <int dim>
class A
{
public:
  A<1>(double a1);
  A<2>(double a1, double a2);

private:
  double a1_, a2_;
};

template<>
A<1>::A(double a1)
  : a1_(a1), a2_(0)
{}

template<>
A<2>::A(double a1)
  : a1_(a1), a2_(2)
{}
EOF

-- 
Configure bugmail: userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to