[llvm-bugs] [Bug 40336] New: clang-cl diag when using exceptions is unfriendly

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 16 07:02:39 PST 2019


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

            Bug ID: 40336
           Summary: clang-cl diag when using exceptions is unfriendly
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Compare:

C:\src\llvm-mono>cl /c test.cc /nologo
test.cc
test.cc(6): warning C4530: C++ exception handler used, but unwind semantics are
not enabled. Specify /EHsc



C:\src\llvm-mono>out\gn\bin\clang-cl /c test.cc
test.cc(6,3):  error: cannot use 'try' with exceptions disabled
  try {




For regular clang, exceptions are enabled by default so it's not an issue
there. But clang-cl should mention "/EHsc" in its diag, probably?

-- 
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/20190116/c6a969e3/attachment-0001.html>


More information about the llvm-bugs mailing list