aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2018-09-21 13:22:20 -0400
committerJason Merrill <jason@gcc.gnu.org>2018-09-21 13:22:20 -0400
commitd4accef391a4aa4c10daeef79c7103fae96a97ba (patch)
tree258333dc0a999373a06580302ac4bf936f0a3c5b /gcc/cp
parentac51f07ad2703824d12523856d6fb1ec333a0a0b (diff)
downloadgcc-d4accef391a4aa4c10daeef79c7103fae96a97ba.zip
gcc-d4accef391a4aa4c10daeef79c7103fae96a97ba.tar.gz
gcc-d4accef391a4aa4c10daeef79c7103fae96a97ba.tar.bz2
* constexpr.c (cxx_eval_outermost_constant_expr): Update comment.
From-SVN: r264484
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/constexpr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c
index fdea769..b481474 100644
--- a/gcc/cp/constexpr.c
+++ b/gcc/cp/constexpr.c
@@ -4960,6 +4960,9 @@ instantiate_constexpr_fns (tree t)
}
/* ALLOW_NON_CONSTANT is false if T is required to be a constant expression.
+ STRICT has the same sense as for constant_value_1: true if we only allow
+ conforming C++ constant expressions, or false if we want a constant value
+ even if it doesn't conform.
PRETEND_CONST_REQUIRED is true if T is required to be const-evaluated as
per P0595 even when ALLOW_NON_CONSTANT is true. */