[LLVMbugs] [Bug 13827] New: clang allows non-deleted virtual function to be overridden by a deleted function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 12 20:10:12 PDT 2012


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

             Bug #: 13827
           Summary: clang allows non-deleted virtual function to be
                    overridden by a deleted function
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: accepts-invalid
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This is ill-formed. Clang accepts it anyway:

struct Base { virtual int f(int n); };
struct Derived : Base { virtual int f(int n) = delete; };

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