[llvm-bugs] [Bug 24432] New: Too much information printed in macro diagnostic message (binary operator)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 11 13:07:32 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24432
Bug ID: 24432
Summary: Too much information printed in macro diagnostic
message (binary operator)
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: zhengkai at google.com
CC: llvm-bugs at lists.llvm.org
Blocks: 24423
Classification: Unclassified
#define SELF(x) x
#define APPLY(f,x,y) x SELF(f) y
struct node {
};
node ff;
int r = APPLY(+,ff,1);
Output is:
:69:15: error: invalid operands to binary expression ('node' and 'int')
int r = APPLY(+,ff,1);
^ ~~ ~
:61:29: note: expanded from macro 'APPLY'
#define APPLY(f,x,y) x SELF(f) y
^
:60:17: note: expanded from macro 'SELF'
#define SELF(x) x
^
At least the last macro expansion should not be printed.
And whether the APPLY macro should be printed remains a question.
--
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/20150811/56660e2f/attachment.html>
More information about the llvm-bugs
mailing list