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++/84798] [6/7/8 Regression] ICE (Segmentation fault) if `auto` appears in a template argument


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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Mar 13 15:55:07 2018
New Revision: 258493

URL: https://gcc.gnu.org/viewcvs?rev=258493&root=gcc&view=rev
Log:
        PR c++/84798 - ICE with auto in abstract function declarator.

        * parser.c (cp_parser_parameter_declaration_clause): Check
        parser->default_arg_ok_p.

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

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