[cfe-commits] [PATCH] PR9903 - crash on typedef member non-compound-statement function body
Richard Smith
richard at metafoo.co.uk
Fri Nov 9 17:24:02 PST 2012
On Fri, Nov 9, 2012 at 9:26 AM, Brian Brooks <brooks.brian at gmail.com> wrote:
> http://llvm.org/bugs/show_bug.cgi?id=9903
>
> After looking at [dcl.fct.def.general] I added a few more test cases for
> ctor-initializer and tok::equal.
>
> Is there a better way to skip a function-body? I don't think my patch is
> very elegant.
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.
More information about the cfe-commits
mailing list