This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 84611 ("[6/7/8 Regression] ICE in operator[], at vec.h:826 (local_class_index())")


Ok.

On Thu, Apr 19, 2018, 2:25 AM Paolo Carlini <paolo.carlini@oracle.com>
wrote:

> Hi,
>
> the below is a rather low-key fix for this error-recovery regression:
> simply notice that pushtag is returning error_mark_node and avoid ICEing
> later. IMHO opinion it's correct and we may as well have it for 8.1.0
> but looking forward we really want a single error in such cases,
> probably by checking first the return value of
> cp_parser_check_type_definition in cp_parser_class_specifier_1.
> Unfortunately, not regressing in terms of error-recovery quality on,
> say, g++.old-deja/g++.jason/cond.C or g++.dg/parse/no-type-defn1.C seems
> pretty tough, I don't think it's 8.1.0 material. Tested x86-64-linux.
>
> Thanks! Paolo.
>
> /////////////////////
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]