Re: [PATCH] c++: PR c++/95999: Improved error recovery in enumeration lists.

2022-03-09 Thread Jason Merrill via Gcc-patches
On 2/21/22 08:17, Roger Sayle wrote: This patch resolves PR c++/95999 which is an ICE-after-error regression in the g++ front-end. When parsing an enumerator list, the C++ parser assumes that cp_parser_constant_expression always returns either an INTEGER_CST or error_mark_node, but in testcase

[PATCH] c++: PR c++/95999: Improved error recovery in enumeration lists.

2022-02-21 Thread Roger Sayle
This patch resolves PR c++/95999 which is an ICE-after-error regression in the g++ front-end. When parsing an enumerator list, the C++ parser assumes that cp_parser_constant_expression always returns either an INTEGER_CST or error_mark_node, but in testcase reported in the PR actually returns a V