[LLVMbugs] [Bug 9942] New: error: exception specification of overriding function is more lax than base version

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 18 05:44:22 PDT 2011


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

           Summary: error: exception specification of overriding function
                    is more lax than base version
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hhinnant at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


$ clang++ -std=c++0x test.cpp

class __shared_count
{
protected:
    virtual ~__shared_count();
};

class __shared_weak_count
    : private __shared_count
{
protected:
    virtual ~__shared_weak_count();
};


test.cpp:11:13: error: exception specification of overriding function is more
lax than base version
    virtual ~__shared_weak_count();
            ^
test.cpp:4:13: note: overridden virtual function is here
    virtual ~__shared_count();
            ^
1 error generated.


Apple clang version 3.0 (trunk 131530) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin10.7.0
Thread model: posix

This error is severe enough that libc++ is completely unusable.  I'm reverting
to an earlier build.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list