<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thank you for the answer.<div><br></div><div>Bug filled at <a href="http://llvm.org/bugs/show_bug.cgi?id=9037">http://llvm.org/bugs/show_bug.cgi?id=9037</a></div><div><br><div><br></div><div><br><div><div>Le 24 janv. 2011 à 19:00, Anders Carlsson a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Jean-Daniel,<div><br></div><div>the keywords currently don't work in on inline member functions.</div><div><br></div><div>While this is correct according to the C++0x spec, please file a bug so we can support it anyway. Maybe we could get the spec fixed as well.</div><div><br></div><div>- Anders</div><div><br></div><div><div><div>On Jan 24, 2011, at 9:51 AM, Jean-Daniel Dupas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello,<br><br>I'm trying to use the new explicit/override/new/final keywords, but I have trouble with some constructs.<br>As I don't managed to find the part of the specification that describe theses new keywords, I hope someone here can help me.<br><br>If I declare the classes A and B as follow, everything is fine. clang compiles and properly checks that foo() is declared in the super class (A).<br><br>class A { virtual void foo(); };<br>class B : public A { virtual void foo() override; };<br><br>Now, if I want to define B::foo() in my class definition like this:<br><br>class B : public A { virtual void foo() override {} };<br><br>clang refuses to compile by telling me it expects a semi at end of declaration list (and point to the space just behind override).<br><br>Is there something I miss in these new keyword usages, or is it a clang error, or is this construct prohibited by the C++ current standard ? <br><br>Thanks<br><br>-- Jean-Daniel<br><br><br><br><br><br>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>-- Jean-Daniel</div><div><br></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>