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


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to