[LLVMbugs] [Bug 16799] New: Macro expansion backtrace fails to mention a parameterless macro aliasing other macro's name
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 5 14:00:17 PDT 2013
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: unassignedclangbugs at nondot.org
Reporter: griwes at griwes.info
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130805/c492e714/attachment.html>
More information about the llvm-bugs
mailing list