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 Regression] ICE (Segmentation fault) if `auto` appears in a template argument


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

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Mar 23 14:39:30 2018
New Revision: 258809

URL: https://gcc.gnu.org/viewcvs?rev=258809&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:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/auto-60626.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/auto51.C
Removed:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/pr60626.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/parser.c
    branches/gcc-7-branch/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]