[LLVMbugs] [Bug 24029] New: Program with chaining of using-declarations - Missing diagnostic message

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 4 17:56:20 PDT 2015


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: unassignedclangbugs at nondot.org
          Reporter: anders.granlund.0 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150705/3102d82d/attachment.html>


More information about the llvm-bugs mailing list