<div dir="ltr">I've attached patches that include this new test:<div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>Phil<br>--<br>Philip Dunstan<br><a href="mailto:phil@philipdunstan.com" target="_blank">phil@philipdunstan.com</a><br>

<a href="http://www.philipdunstan.com" target="_blank">www.philipdunstan.com</a></div>
<br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 7:23 PM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Tue, Feb 5, 2013 at 7:44 PM, Philip Dunstan <<a href="mailto:phil@philipdunstan.com">phil@philipdunstan.com</a>> wrote:<br>
</div><div class="im">> I haven't modified yet how the insertion point for the override keyword is<br>
> calculated. Dmitri suggested FunctionTypeLoc::getRParenLoc() but I don't<br>
> think that this will work if there is a trailing const keyword or deferred<br>
> return type.<br>
<br>
</div>Could you please add a test with a trailing return type anyway?<br>
<br>
class A {<br>
public:<br>
  virtual int h();<br>
};<br>
<br>
class B {<br>
public:<br>
  auto h() -> int;<br>
<div class="HOEnZb"><div class="h5">};<br>
<br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</div></div></blockquote></div><br></div>