constexpr.c (cxx_fold_indirect_ref): Use similar_type_p.
authorJason Merrill <jason@redhat.com>
Fri, 27 Sep 2019 18:23:10 +0000 (14:23 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 27 Sep 2019 18:23:10 +0000 (14:23 -0400)
commit1a120ec124a76ef2bf658f8f11d8ecb58f766a0d
tree50a534b5421c3c1b66778dbf2353a5cf59608074
parentc872f1506d46ceba10776d0ebc86b4126273a419
constexpr.c (cxx_fold_indirect_ref): Use similar_type_p.

* constexpr.c (cxx_fold_indirect_ref): Use similar_type_p.

Merging the similar_type_p change to the concepts branch broke a cmcstl2
testcase; investigating led me to this small testcase which has always
failed on trunk.

(cxx_eval_indirect_ref): Likewise.  Improve error location.

From-SVN: r276192
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp0x/constexpr-const2.C [new file with mode: 0644]