http://llvm.org/bugs/show_bug.cgi?id=19997

            Bug ID: 19997
           Summary: noexcept overloads not checked if using
                    -fno-exceptions
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

$ clang -c test.cpp -fno-exceptions -std=c++11
$ g++ -c test.cpp -fno-exceptions -std=c++11
test.cpp:5:16: error: looser throw specifier for ‘virtual void bar::f()’
   virtual void f();
                ^
test.cpp:2:16: error:   overriding ‘virtual void foo::f() noexcept (true)’
   virtual void f() noexcept;
                ^
$ cat test.cpp
class foo {
  virtual void f() noexcept;
};
class bar : public foo {
  virtual void f();
};

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to