[LLVMbugs] [Bug 9941] New: Error in simple code in C++0x: 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:21:06 PDT 2011


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

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


The following code fails to compile with -std=c++0x

struct X
{ virtual ~X() {} };

struct Y : X
{ virtual ~Y() {} };

with the error message:

t.cc:5:11: error: exception specification of overriding function is more lax
      than base version
{ virtual ~Y() {} };
          ^
t.cc:2:11: note: overridden virtual function is here
{ virtual ~X() {} };

This is currently blocking libc++, and mostly anything else.

-- 
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