[llvm-bugs] [Bug 50456] New: Blackslashes pre-processing implementation is non-standard
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 24 09:19:50 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50456
Bug ID: 50456
Summary: Blackslashes pre-processing implementation is
non-standard
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: info at jannes-althoff.de
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
The Backlashes are not correctly parsed if you try to compile this
/**\
\
/
int main(void){return 0;}
this should compile because backslashes before newlines should be evaluated
before Comments according to section 5.1.1.2 of C11 and C99, but clang gives
"<source>:1:1: error: unterminated /* comment" as an error.
--
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/20210524/0d5044e3/attachment.html>
More information about the llvm-bugs
mailing list