[LLVMbugs] [Bug 19997] New: noexcept overloads not checked if using -fno-exceptions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 10 14:01:50 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140610/fac2a049/attachment.html>


More information about the llvm-bugs mailing list