[LLVMbugs] [Bug 12082] New: class definition allowed in namespace which doesn't enclose namespace of declaration

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 25 08:15:18 PST 2012


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

             Bug #: 12082
           Summary: class definition allowed in namespace which doesn't
                    enclose namespace of declaration
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: zilla at kayari.org
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


namespace n1 {
   class A;
}

namespace n2 {
   class n1::A { };
}

n1::A a;

I believe this should be rejected according to [class] p11


clang version 3.1 (trunk 150339)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
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.



More information about the llvm-bugs mailing list