[Bug c++/49264] [4.6/4.7 Regression] Internal compiler error: segmentation fault

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 2 15:19:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49264

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-02 15:18:54 UTC ---
Seems we have memcpy (&any, &D.2892, 1) and fold_stmt_1 it.
Folding turns this into MEM_REF[&any] = MEM_REF[&D.2892], which
gimplify_and_update_call_from_tree tries to regimplify, but as any seems to be
an empty class, cp_gimplify_expr optimizes that away, so we end up with no
statements at all, and fold_stmt_1 is kind of unprepared to see a statement
folded into nothing.



More information about the Gcc-bugs mailing list