[LLVMbugs] [Bug 9037] New: explicit virtual keywords (override/final/new) not support on inline members

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 24 10:08:49 PST 2011


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

           Summary: explicit virtual keywords (override/final/new) not
                    support on inline members
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: devlists at shadowlab.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Actually, clang does not support usage of the keywords defined by the "Explicit
virtual function overrides" language extension on members defined inline.

----------- test.cpp
class A { virtual void foo(); };
class B : public A { virtual void foo() override {} };
-----------

> clang++ -fsyntax-only test.cpp 
test.cpp:2:49: error: expected ';' at end of declaration list
class B : public A { virtual void foo() override {} };
                                                ^
                                                ;
1 error generated.

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