[LLVMbugs] [Bug 11270] New: Template specialisation inside class	accepted
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Sun Oct 30 10:04:47 PDT 2011
    
    
  
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: unassignedclangbugs at nondot.org
        ReportedBy: pipping at exherbo.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
    
    
More information about the llvm-bugs
mailing list