[llvm-bugs] [Bug 24393] New: Improved diagnostic with missing closing brace crossing an include

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 7 09:34:00 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24393

            Bug ID: 24393
           Summary: Improved diagnostic with missing closing brace
                    crossing an include
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: daniel at zuster.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Clang should give a nicer diagnostic for this mistake:
--
$ cat t.h
namespace a {
namespace b {
}

$ cat t.cpp
#include "t.h"
#include <unordered_set>

$ clang -Weverything -fsyntax-only t.cpp
In file included from t.cpp:2:
In file included from ../include/c++/v1/unordered_set:325:
In file included from ../include/c++/v1/__hash_table:15:
In file included from ../include/c++/v1/initializer_list:47:
../include/c++/v1/cstddef:46:7: error: 
      no member named 'ptrdiff_t' in the global namespace; did you mean
'::a::ptrdiff_t'?
using ::ptrdiff_t;
      ^~
--

Related to: Bug 13596

-- 
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/20150807/ec8e8b94/attachment.html>


More information about the llvm-bugs mailing list