aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2016-04-13 11:02:17 -0400
committerJason Merrill <jason@gcc.gnu.org>2016-04-13 11:02:17 -0400
commiteb07f187a471f9a203626aecced17d6947c3cc46 (patch)
tree4df20658e32c740c4941fef058a9e3b8e224f226 /gcc/cp/cp-tree.h
parent3eddc1c9718c6b8264d42cda6e76a3dd9ffc93f0 (diff)
downloadgcc-eb07f187a471f9a203626aecced17d6947c3cc46.zip
gcc-eb07f187a471f9a203626aecced17d6947c3cc46.tar.gz
gcc-eb07f187a471f9a203626aecced17d6947c3cc46.tar.bz2
constexpr.c (potential_nondependent_constant_expression): New.
* constexpr.c (potential_nondependent_constant_expression): New. (potential_nondependent_static_init_expression): New. (maybe_constant_value_1, fold_non_dependent_expr) (maybe_constant_init): Use them. * pt.c (instantiate_non_dependent_expr_sfinae) (instantiate_non_dependent_or_null, convert_nontype_argument): Use them. * cp-tree.h: Declare them. From-SVN: r234944
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 0f7e08f..ecf2a5d 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -6884,6 +6884,8 @@ extern tree register_constexpr_fundef (tree, tree);
extern bool check_constexpr_ctor_body (tree, tree, bool);
extern tree ensure_literal_type_for_constexpr_object (tree);
extern bool potential_constant_expression (tree);
+extern bool potential_nondependent_constant_expression (tree);
+extern bool potential_nondependent_static_init_expression (tree);
extern bool potential_static_init_expression (tree);
extern bool potential_rvalue_constant_expression (tree);
extern bool require_potential_constant_expression (tree);