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

Reply via email to