This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/49324] iso_varying_string and reshape fail


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]