Hi,
On 07/15/2015 04:12 PM, Jason Merrill wrote:
On 07/14/2015 07:29 PM, Paolo Carlini wrote:
I see. At the time I had this second try:
https://gcc.gnu.org/ml/gcc-patches/2015-06/msg01232.html
which has the action in cp_parser_unqualified_id but unfortunately is
more complex. Certainly we can't just return inconditionally
error_mark_node in that case, we have at least these regressions, a few
accepts-invalid:
I think the problem here was that you can't just return
error_mark_node without also forcing a parser error, or you get
accepts-invalids. I played around with it and came up with the following:
Great, thanks. I suspected that something similar could be happening but
then went offline for a few days... Thanks a lot! I'm closing the bug, then.
Paolo.
PS: I should have a fix for that error recovery issue we discussed a few
days ago. Patch forthcoming...