re PR c++/89709 (ICE with constexpr and "-O")
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Mar 2019 09:23:11 +0000 (10:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Mar 2019 09:23:11 +0000 (10:23 +0100)
commit4e6482d05be433b819e3ec9ab6f058d575f084ea
tree7dda386820bff124d8b717747e3aa2e9c0ba77c5
parent8eb2215d8dc2662c3edad179b842097e0dce2722
re PR c++/89709 (ICE with constexpr and "-O")

PR c++/89709
* tree.c (inchash::add_expr): Strip any location wrappers.
* fold-const.c (operand_equal_p): Move stripping of location wrapper
after hash verification.

* g++.dg/cpp0x/constexpr-89709.C: New test.

From-SVN: r269702
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-89709.C [new file with mode: 0644]
gcc/tree.c