Re: [C++ Patch/RFC] PR 84348 ("[7/8 Regression] ICE with invalid friend declaration")

2018-02-18 Thread Jason Merrill
OK. On Fri, Feb 16, 2018 at 5:30 PM, Paolo Carlini wrote: > Hi, > > here we ICE during error recovery when, after emitting a correct error from > grokdeclarator, we go on, we only clear friendp, and grokfield proceeds to > call cp_finish_decl where 'gcc_assert

[C++ Patch/RFC] PR 84348 ("[7/8 Regression] ICE with invalid friend declaration")

2018-02-16 Thread Paolo Carlini
Hi, here we ICE during error recovery when, after emitting a correct error from grokdeclarator, we go on, we only clear friendp, and grokfield proceeds to call cp_finish_decl where 'gcc_assert (CLASS_PLACEHOLDER_TEMPLATE (auto_node));' triggers. We could imagine solving the problem in