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


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

Reply via email to