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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs