[LLVMbugs] [Bug 8668] New: Use of multiple using declaration in a function scope (Another erroneous compilation)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 22 19:41:22 PST 2010


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

           Summary: Use of multiple using declaration in a function scope
                    (Another erroneous compilation)
           Product: clang
           Version: 2.8
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: prasoonsaurav.nit at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


ISO C++ 7.3.3/8 says - "A using-declaration is a declaration and can therefore
be used repeatedly where (and only where) multiple declarations are allowed."

So

namespace A{
   int i;
}

int main(){
   using A::i;
   using A::i;
}

is ill-formed according to the Standard. But Clang erroneously compiles the
above code snippet.

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