http://llvm.org/bugs/show_bug.cgi?id=16799
Bug ID: 16799
Summary: Macro expansion backtrace fails to mention a
parameterless macro aliasing other macro's name
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 10988
--> http://llvm.org/bugs/attachment.cgi?id=10988&action=edit
basic testcase
For the attached file, I get the following compiler output:
main.cpp:6:9: error: use of undeclared identifier 'baz'
foo(baz);
^
main.cpp:2:16: note: expanded from macro 'bar'
#define bar(a) a
^
1 error generated.
What I would actually expect would be something like this:
main.cpp:6:9: error: use of undeclared identifier 'baz'
foo(baz);
^
main.cpp:1:13: note: expanded from macro 'foo'
#define foo bar
^
main.cpp:2:16: note: expanded from macro 'bar'
#define bar(a) a
^
1 error generated.
The first note might need to look a bit differently, but not mentioning `foo`
in this expansion backtrack looks like a bug to me.
--
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