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

Paolo Carlini paolo.carlini@oracle.com
Fri Apr 26 06:43:00 GMT 2019


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?

Thanks! Paolo.



More information about the Gcc-patches mailing list