[llvm-bugs] [Bug 33609] New: Incorrect error with -E -CC and comments in macro parameters
llvm-bugs at lists.llvm.org
Tue Jun 27 03:08:43 PDT 2017
Bug ID: 33609
Summary: Incorrect error with -E -CC and comments in macro
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: jonathanmueller.dev at gmail.com
CC: llvm-bugs at lists.llvm.org
Given the following file:
#define FOO(a /* comment */)
Preprocessing it with `clang++ -E -CC file.cpp` yields the following error:
file.cpp:1:15: error: expected comma in macro parameter list
GCC with the same flags accepts the code.
The problem here seems to be that the -CC option doesn't skip any comments
which leads to this error while GCC does skip them.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs