This is the mail archive of the gcc-bugs@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]

[Bug c++/84609] [8 Regression] internal compiler error: in cp_parser_abort_tentative_parse, at cp/parser.c:28960 (cp_parser_member_declaration())


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Feb 28 18:57:38 2018
New Revision: 258080

URL: https://gcc.gnu.org/viewcvs?rev=258080&root=gcc&view=rev
Log:
        PR c++/84609
        * parser.c (cp_parser_attributes_opt): Formatting fix.
        (cp_parser_skip_balanced_tokens, cp_parser_skip_gnu_attributes_opt,
        cp_parser_skip_std_attribute_spec_seq, cp_parser_skip_attributes_opt):
        New functions.
        (cp_parser_member_declaration): Use cp_parser_skip_attributes_opt
        instead of tentative parse to peek over optional attribute tokens
        to check for CPP_COLON after them.

        * g++.dg/cpp0x/pr84609.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr84609.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog

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