r249325 - in /branches/gcc-7-branch/gcc: cp/Cha...
jason@gcc.gnu.org
jason@gcc.gnu.org
Sat Jun 17 02:33:00 GMT 2017
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
More information about the Gcc-cvs
mailing list