http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49324
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-06-08 16:22:37 UTC --- Not an analysis, just some observations ... I get different results with different compilers: gfortran 4.7: array2d second 2 3 '' '@' '`' '`A�▒' '@' 'A�' ifort 11.1: array2d second 2 3 '/' '/' '/' '/' '/' '/' NAG 5.1 and pgf90 10.1-0: array2d second 2 3 '' '' '' 'four' '' '' pathf95 and g95: array2d second 2 3 '1' '2' '3' 'four' '5' 'six' [Neither NAG with -C=all -C=undefined, nor ifort -check all, nor gfortran -fcheck=all show an error.] I tried also the other ISO Varying String implementations at ftp://ftp.nag.co.uk/sc22wg5/ISO_VARYING_STRING/Sample_Module/ , but I fail to get a consistent result with those. ifort with either iso_vst.f90 or iso_vsta.f90: array2d second 2 3 '1' '1' '1' '1' '1' '1' gfortran, g95, NAG, pgf90 and pathf95 with iso_vst.f90 and with g95, pgf90 and pathf95 for iso_vsta.f90: array2d second 2 3 '1' '2' '3' 'four' '5' 'six' gfortran with iso_vsta.f90: array2d second 2 3 '' '�' '�' '�jb' '�' 'b' NAG with iso_vsta.f90: ALLOCATABLE array allocatable array component is not currently allocated Program terminated by fatal error In S_ASS_S, line 342 of iso_vsta.f90 Called by TEST_IVS, line 13 of hj4f.f90