[LLVMbugs] [Bug 19477] New: Missing location for many diags when they occur inside of a macro

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 18 09:20:04 PDT 2014


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

            Bug ID: 19477
           Summary: Missing location for many diags when they occur inside
                    of a macro
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Keywords: quality-of-implementation
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: benny.kra at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This happens basically anywhere getLocForEndOfToken is used.

Some examples
$ cat t.cc
#define memset(a, b, c) __builtin_memset(a, b, c)

int main() {
  float foo[16]; memset(foo, 0, sizeof float * 16);
}

#define CLASS3 struct Class3 {} \
               typedef Class3 Type3;

CLASS3

#define EMACRO enum E17 { B1 B2 };
EMACRO

$ clang -fsyntax-only t.cc
error: expected parentheses around type name in sizeof expression
error: expected ';' after struct
error: missing ',' between enumerators
3 errors generated.

Note the lack of location information.

-- 
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/20140418/736fb771/attachment.html>


More information about the llvm-bugs mailing list