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: unassignedclangb...@nondot.org Reporter: zheng...@google.com CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs