[Bug tree-optimization/56270] loop over array of struct float causes compiler error: segmentation fault

mikpe at it dot uu.se gcc-bugzilla@gcc.gnu.org
Sun Mar 3 19:43:00 GMT 2013


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

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2013-03-03 19:43:14 UTC ---
This was fixed for 4.8 by Jan Hubicka's r193175, which rewrote finite_loop_p in
tree-ssa-loop-niter.c.  That patch doesn't work as-is in 4.7.2 (it applies but
uses other things which aren't in 4.7.2.)

The SEGV in 4.7.2 occurs in tree-vect-stmts.c:3938

3938              gcc_assert (useless_type_conversion_p (vectype,
3939                                                     TREE_TYPE
(vec_oprnd)));

because vec_oprnd is NULL at that point.



More information about the Gcc-bugs mailing list