r251423 - in /trunk/gcc: cp/ChangeLog cp/conste...

jason@gcc.gnu.org jason@gcc.gnu.org
Tue Aug 29 19:40:00 GMT 2017


Author: jason
Date: Tue Aug 29 19:40:14 2017
New Revision: 251423

URL: https://gcc.gnu.org/viewcvs?rev=251423&root=gcc&view=rev
Log:
	Add immediate potential_constant_expression variants.

	* constexpr.c (potential_constant_expression_1): Add "now" parm.
	(is_constant_expression, require_constant_expression): New.
	(is_static_init_expression, is_nondependent_constant_expression)
	(is_nondependent_static_init_expression): Drop "potential".
	* except.c (build_must_not_throw_expr): Do type conversion on
	value-dependent argument.
	* pt.c, semantics.c, typeck2.c: Use variants without "potential".

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-conv2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/except.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/typeck2.c



More information about the Gcc-cvs mailing list