[llvm-bugs] [Bug 42089] New: Regression since SVN r362119, "Add Attribute NoThrow as an Exception Specifier Type"

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 31 03:07:57 PDT 2019


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

            Bug ID: 42089
           Summary: Regression since SVN r362119, "Add Attribute NoThrow
                    as an Exception Specifier Type"
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: martin at martin.st
                CC: erich.keane at intel.com, htmldeveloper at gmail.com,
                    llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Since SVN r362119, "Add Attribute NoThrow as an Exception Specifier Type",
compiling Qt on MinGW fails with the following error:

This spec type is compatible with none.
UNREACHABLE executed at ../tools/clang/lib/Sema/SemaExceptionSpec.cpp:426! 

This can be trivially reproduced with the following test snippet:

$ cat test.cpp 
class Foo {
public:
        __attribute__((nothrow)) void __attribute__((__stdcall__)) Bar();
};

void Foo::Bar() {
}
$ clang -target i686-w64-mingw32 -c test.cpp -std=c++17

-- 
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/20190531/39cdbd11/attachment.html>


More information about the llvm-bugs mailing list