[Bug fortran/33288] ICE (segfault) in mpfr_cmp2 when evaluating array initializers containing addition
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 3 10:12:00 GMT 2007
------- Comment #4 from burnus at gcc dot gnu dot org 2007-09-03 10:12 -------
The following does not ICE for me and produces the right result (note the extra
"+0.0"):
real,parameter :: x(n) = (/ -x0, x0(n0-1:1:-1) + 0.0 /) +1.0
analogously for (note extra "(...)"):
real,parameter :: x(n) = (/ -x0, ( x0(n0-1:1:-1) ) /) +1.0
Seemingly, the array range x0(n0-1:1:-1) does not get properly simplified and
thus ->value.real points to the nirvana.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33288
More information about the Gcc-bugs
mailing list