[Bug c++/39367] [4.4 Regression] ICE at tree-inline.c:1042 with -O
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 6 14:06:00 GMT 2009
------- Comment #8 from jakub at gcc dot gnu dot org 2009-03-06 14:06 -------
Normally TYPE_MAX_VALUE etc. shouldn't contain anything but constants or
VAR_DECLs after gimplification, gimplify_type_sizes is supposed to take care of
this.
The problem here is that build_new_1 when it creates its VLAs by hand doesn't
add DECL_EXPR and so for this type gimplify_type_sizes isn't called at all.
I guess just adding a DECL_EXPR if vla_p would be sufficient.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Component|tree-optimization |c++
Last reconfirmed|2009-03-04 22:08:34 |2009-03-06 14:06:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39367
More information about the Gcc-bugs
mailing list