This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84798] [6/7 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: Fri, 23 Mar 2018 14:40:06 +0000
- Subject: [Bug c++/84798] [6/7 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 #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