This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/70933] [7.0 regression] ICE with -Wall on valid code in inchash::add_expr


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70933

--- Comment #2 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]