https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88180

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Dec 20 17:34:19 2018
New Revision: 267306

URL: https://gcc.gnu.org/viewcvs?rev=267306&root=gcc&view=rev
Log:
        PR c++/88180
        * parser.c (cp_parser_class_specifier_1): If
        cp_parser_check_type_definition fails, skip default arguments, NSDMIs,
        etc. like for erroneous template args.

        * g++.dg/parse/pr88180.C: New test.
        * g++.dg/pr85039-1.C: Don't expect diagnostics inside of the type
        definition's NSDMIs.

Added:
    trunk/gcc/testsuite/g++.dg/parse/pr88180.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/pr85039-1.C

Reply via email to