[llvm-bugs] [Bug 49101] New: clang-cl does not error out with /permissive- (Standards conformance mode)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 8 16:39:32 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=49101

            Bug ID: 49101
           Summary: clang-cl does not error out with /permissive-
                    (Standards conformance mode)
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: other
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pasqualecolaianni at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Created attachment 24499
  --> https://bugs.llvm.org/attachment.cgi?id=24499&action=edit
Code that should fail with /permissive-. Comments show the current output.

Option /permissive- from MSVC is described at:
https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance

MSVC errors out on warnings that break conformance to a standard.

clang-cl generates the warnings, but it does not error out. It produces an
executable.

The excepted behavior is that the build should fail.

Please see attachment for an example.

Platform: Windows 10
Clang-cl version: 11.0.1
MSVC: 19.28.29336 for x64

-- 
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/20210209/37358064/attachment.html>


More information about the llvm-bugs mailing list