[cfe-commits] [PATCH] PR9903 - crash on typedef member non-compound-statement function body

Brian Brooks brooks.brian at gmail.com
Thu Nov 15 13:38:10 PST 2012


> If you're looking for a more elegant approach, you could try to
> recover by removing the 'typedef' specifier. That's what we do when a
> non-member function is defined with 'typedef'. See
> Parser::ParseDeclGroup and
> Parser::ParseSingleDeclarationAfterTemplate.
>

This seems to work well.  I have attached an updated patch.  Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121115/178f2155/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: member-typdef-fn.patch
Type: application/octet-stream
Size: 2476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121115/178f2155/attachment.obj>


More information about the cfe-commits mailing list