[Bug fortran/34547] NULL(): Fortran 2003 changes, accepts invalid, ICE on invalid

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Sat Jun 29 14:06:00 GMT 2013


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

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> It looks like it was fixed in 4.7.0 with the following error message
>
> Error: NULL intrinsic at (1) in data transfer statement requires MOLD=

Confirmed, however compiling the second test in comment #0, namely

 integer, allocatable :: i(:)
 print *, NULL(i)
end

gives an ICE with 4.8.1 and trunk (4.9)

pr34547_1.f90:2:0: internal compiler error: in gfc_conv_expr_descriptor, at
fortran/trans-array.c:6423
  print *, NULL(i)

It compiles with 4.7.3, and gives the reported error with 4.6.4.



More information about the Gcc-bugs mailing list