[Bug fortran/44177] gfortran internal data assignment error cause found

kargl at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon May 17 20:30:00 GMT 2010



------- Comment #1 from kargl at gcc dot gnu dot org  2010-05-17 20:29 -------
Given this code

  real foo(2) /2*0.0/
  data foo/0.0, 0.0/  
  print *, foo
  end

Trunk compiles the code.  Gfortran 4.5 has the ICE.

troutmask:sgk[211] gfc4x -o z -Wall t.f90
troutmask:sgk[212] ./z
   0.0000000       0.0000000    
troutmask:sgk[213] gfc45 -o z -Wall t.f90
f951: internal compiler error: in gfc_assign_data_value_range, at
fortran/data.c:562
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

It's unclear to me if the fix in trunk can be back ported to 4.5.


-- 


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



More information about the Gcc-bugs mailing list