https://llvm.org/bugs/show_bug.cgi?id=24029
Bug ID: 24029
Summary: Program with chaining of using-declarations - Missing
diagnostic message
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
The following program should produce a diagnostic message when trying to
compile it:
namespace X { int i; }
namespace Y { using X::i; }
int main() { using X::i; using Y::i; }
This because it violates ยง7.3.3/10 of the c++ standard:
http://eel.is/c++draft/basic.namespace#namespace.udecl-10.
The diagnostic message is missing. GCC gives a diagnostic message for this
program, but clang does not.
Stack overflow post confirming the bug:
http://stackoverflow.com/questions/31224886/program-with-chaining-of-using-declarations-compiles-on-msvs-and-clang-but-not-o
--
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