<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 24, 2015 at 6:31 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Mar 24, 2015 at 2:28 PM, Ehsan Akhgari <span dir="ltr"><<a href="mailto:ehsan.akhgari@gmail.com" target="_blank">ehsan.akhgari@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm having difficulty fixing the issue that caused this patch to bounce when I landed it earlier this morning.  Here is a link to the log of the test failure: <a href="http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/24611/steps/check-all/logs/FAIL%3A%20Clang%3A%3Afixit-cxx0x.cpp" target="_blank">http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/24611/steps/check-all/logs/FAIL%3A%20Clang%3A%3Afixit-cxx0x.cpp</a><br>
<br>
The issue is my call to getFunctionTypeInfo().  That call is now asserting because isFunctionDeclarator() returns false on the declaration.  I checked, and isDeclarationOfFunction() returns true, but I'm not sure how to get a FunctionTypeInfo out of such a declarator.<br></blockquote><div><br></div></span><div>You can't; there isn't one. Consider:</div><div><br></div><div>typedef int F() const;</div><div><br></div><div>struct X {</div><div>  virtual F f final volatile;</div><div>};</div><div><br></div><div>The declaration of X::f doesn't have a function declarator. The simplest way out of this would be to skip your new recovery path if your Declarator is not a function declarator.</div></div></div></div></blockquote><div><br></div><div>Thanks, I understand now.  Your advice helped me fix this issue! <br></div></div><br>-- <br><div class="gmail_signature"><div dir="ltr">Ehsan<br></div></div>
</div></div>