This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69211] [6 Regression] g++ ICE on x86_64-linux-gnu (verify_gimple failed)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Jan 2016 14:38:41 +0000
- Subject: [Bug c++/69211] [6 Regression] g++ ICE on x86_64-linux-gnu (verify_gimple failed)
- Auto-submitted: auto-generated
- References: <bug-69211-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69211
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I guess the bug is that lots of code in fold-const.c is totally unprepared to
see NOP_EXPR wrapping up INTEGER_CST (or other constants), it assumes that if
argN is say INTEGER_CST, then argN == opN and thus does not fold.
Rather than changing everything in fold-const.c, I think it is better to make
sure cp_fold folds those away early enough. Let me test a patch.