Ok. On Thu, Apr 19, 2018, 2:25 AM Paolo Carlini <paolo.carl...@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. > > ///////////////////// > >