aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2015-02-13 17:07:30 -0500
committerJason Merrill <jason@gcc.gnu.org>2015-02-13 17:07:30 -0500
commitef796bef889d8a1590430a9da06c40ec4977d79e (patch)
treea3d3d0ff70776f75d1e90655b7d95c53b16ab059 /gcc/cp/constexpr.c
parent8f895cf1ac7babe0c89533e8e9e6b6ca6bb33950 (diff)
downloadgcc-ef796bef889d8a1590430a9da06c40ec4977d79e.zip
gcc-ef796bef889d8a1590430a9da06c40ec4977d79e.tar.gz
gcc-ef796bef889d8a1590430a9da06c40ec4977d79e.tar.bz2
re PR c++/65054 (internal compiler error: in maybe_constant_value, at cp/constexpr.c:3646)
PR c++/65054 * pt.c (template_args_equal): Look through conversions here. * tree.c (cp_tree_equal): Not here. From-SVN: r220697
Diffstat (limited to 'gcc/cp/constexpr.c')
-rw-r--r--gcc/cp/constexpr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c
index 2b56cb2..d415dd4 100644
--- a/gcc/cp/constexpr.c
+++ b/gcc/cp/constexpr.c
@@ -3638,7 +3638,6 @@ maybe_constant_value (tree t, tree decl)
r = cxx_eval_outermost_constant_expr (t, true, true, decl);
#ifdef ENABLE_CHECKING
- /* cp_tree_equal looks through NOPs, so allow them. */
gcc_assert (r == t
|| CONVERT_EXPR_P (t)
|| TREE_CODE (t) == VIEW_CONVERT_EXPR