This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84798] [6/7/8 Regression] ICE (Segmentation fault) if `auto` appears in a template argument
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Mar 2018 15:55:40 +0000
- Subject: [Bug c++/84798] [6/7/8 Regression] ICE (Segmentation fault) if `auto` appears in a template argument
- Auto-submitted: auto-generated
- References: <bug-84798-4@http.gcc.gnu.org/bugzilla/>
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