[Bug c++/70906] [7 Regression] ice in add_expr, at tree.c:7925
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 4 20:45:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70906
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed May 4 20:44:40 2016
New Revision: 235902
URL: https://gcc.gnu.org/viewcvs?rev=235902&root=gcc&view=rev
Log:
PR c++/70906
PR c++/70933
* tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
* tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
assert flags & OEP_HASH_CHECK, instead of asserting it
never happens. Handle TARGET_EXPR.
* fold-const.c (operand_equal_p): For hash verification,
or in OEP_HASH_CHECK into flags.
* g++.dg/opt/pr70906.C: New test.
* g++.dg/opt/pr70933.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/opt/pr70906.C
trunk/gcc/testsuite/g++.dg/opt/pr70933.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-core.h
trunk/gcc/tree.c
More information about the Gcc-bugs
mailing list