This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Change order of tentative parsing in cp_parser_postfix_dot_deref_expression (PR c++/35138)


On 12/02/2008, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> To fix PR32384, I have changed 3 months ago
> cp_parser_postfix_dot_deref_expression, if postfix-expression is dependent,
> to parse it tentatively as pseudo-dtor first and if that fails do what it
> did before, parse as id-expression.  Unfortunately it turns out that even
> tentative parsing isn't silent and sometimes emits errors unconditionally,
> and limiting the PR20293 errors to definitive parse or when committed to
> tentative parse resulted in many regressions.

Can't cp_parser_pseudo_destructor_name parse the expression without
checking types (perhaps even without lookup invocation) and if there
is no CPP_COMPL token return immediately? Am I missing a case here?

Cheers,

Manuel.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]