http://llvm.org/bugs/show_bug.cgi?id=7944
Summary: diagnostic missing source location when used with
macro
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
This unassuming program has a common syntax error:
#define MACRO(x) x
struct B {
int f() { return true; }
};
struct A {
B* b() { return new B; }
};
void g() {
A a;
MACRO(a.b->f());
}
but the diagnostic is missing important information:
$ clang++ -fsyntax-only x.cc
error: base of member reference has function type 'B *()'; perhaps you meant
to
call this function with '()'?
1 error generated.
No source file, no line number, no caret highlighting. If you remove the macro
then it works just fine.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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