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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to