]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/constexpr.cc
Add immediate potential_constant_expression variants.
authorJason Merrill <jason@redhat.com>
Tue, 29 Aug 2017 19:40:14 +0000 (15:40 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 29 Aug 2017 19:40:14 +0000 (15:40 -0400)
commita0ab7ccd216184853052cec1bce7900cbdeed0b4
tree29a36ea3eecd68beb15c9eab599e458926584a2b
parent12659e10c78200717fc82ed77892de5059fa44b5
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".

From-SVN: r251423
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-tree.h
gcc/cp/except.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/cpp0x/constexpr-conv2.C [new file with mode: 0644]
This page took 0.061034 seconds and 5 git commands to generate.