http://llvm.org/bugs/show_bug.cgi?id=13738

             Bug #: 13738
           Summary: MS compatibility: explicit specializations can be
                    declared in any namespace
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


vs10 will compile the following without errors, even when language extensions
are disabled.

    namespace A {
        template <typename T>
        class X;
    }

    namespace B {
        template <>
        class A::X<int>;
    }

clang correctly outputs

    error: class template specialization of 'X' must originally be declared in
namespace 'A'

The diagnostic should be suppressed when -fms-compatibility is in effect.

-- 
Configure bugmail: http://llvm.org/bugs/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