[llvm-bugs] [Bug 33609] New: Incorrect error with -E -CC and comments in macro parameters
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 27 03:08:43 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33609
Bug ID: 33609
Summary: Incorrect error with -E -CC and comments in macro
parameters
Product: clang
Version: 4.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
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...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170627/de0c2f3a/attachment.html>
More information about the llvm-bugs
mailing list