[C++ Patch] PR 90173 ("[9 Regression] ICE: Segmentation fault (in strip_declarator_types)")

Jason Merrill jason@redhat.com
Fri Apr 26 14:52:00 GMT 2019


On 4/25/19 7:14 PM, Paolo Carlini wrote:
> Hi,
> 
> On 25/04/19 23:14, Jason Merrill wrote:
>> On Tue, Apr 23, 2019 at 11:26 AM Paolo Carlini 
>> <paolo.carlini@oracle.com> 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.

Jason



More information about the Gcc-patches mailing list