This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r249325 - in /branches/gcc-7-branch/gcc: cp/Cha...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sat, 17 Jun 2017 02:33:01 -0000
- Subject: r249325 - in /branches/gcc-7-branch/gcc: cp/Cha...
Author: jason
Date: Sat Jun 17 02:33:01 2017
New Revision: 249325
URL: https://gcc.gnu.org/viewcvs?rev=249325&root=gcc&view=rev
Log:
Fix array decay handling in constant expressions.
* parser.c (cp_parser_constant_expression): Check
potential_rvalue_constant_expression after decay_conversion.
* pt.c (convert_nontype_argument): Don't require linkage in C++17.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/template/nontype-array1.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/parser.c
branches/gcc-7-branch/gcc/cp/pt.c
branches/gcc-7-branch/gcc/testsuite/g++.dg/template/function1.C