[C++ Patch] PR 90173 ("[9 Regression] ICE: Segmentation fault (in strip_declarator_types)")
Fri Apr 26 14:52:00 GMT 2019
On 4/25/19 7:14 PM, Paolo Carlini wrote:
> On 25/04/19 23:14, Jason Merrill wrote:
>> On Tue, Apr 23, 2019 at 11:26 AM Paolo Carlini
>> <firstname.lastname@example.org> wrote:
>>> I tried a few different things to avoid this simple error-recovery
>>> regression but, all in all, I think it makes sense to simply bail out
>>> early from grokdeclarator upon the first error. Tested x86_64-linux.
>> "type = error_mark_node" doesn't work?
> Yes, it passes testing and appears to work fine: in practice for the new
> testcase grokdeclarator doesn't issue any further diagnostic and returns
> error_mark_node a few lines below, around line # 11256. Shall we apply
> this version to gcc-9-branch too?
When the branch reopens, yes.
More information about the Gcc-patches