[llvm-bugs] [Bug 51029] New: -Wfatal-errors does not immediately abort compilation on the first error occurred (clang incorrectly keeps compiling the rest of the code)
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 8 09:35:36 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51029
Bug ID: 51029
Summary: -Wfatal-errors does not immediately abort compilation
on the first error occurred (clang incorrectly keeps
compiling the rest of the code)
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: pavel.morozkin at gmail.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Note: This bug is not a duplicate of
https://bugs.llvm.org/show_bug.cgi?id=7918.
Invocation: $ clang t0.c -Wfatal-errors
t0.c:773:11: fatal error: use of undeclared identifier 'xxx'
<clang does not abort compilation immediately and keeps compiling the rest of
the code>
Expected behavior: compilation is aborted immediately (clang stops compiling
the rest of the code)
Actual behavior: compilation is not aborted immediately (clang keeps compiling
the rest of the code)
Version: 12.0.0
--
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/20210708/3bf31898/attachment.html>
More information about the llvm-bugs
mailing list