[Bug fortran/33241] ICE with parameter string arrays

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 30 09:04:00 GMT 2007



------- Comment #2 from burnus at gcc dot gnu dot org  2007-08-30 09:04 -------
Forgot to mention that gfortran gives the same error as NAG f95 but only when
using -std=f95 or f2003:
Error: The CHARACTER elements of the array constructor at (1) must have the
same length (24/32)


Work around: Change
  CHARACTER (LEN=*), DIMENSION(nvar),  PARAMETER :: var  = 'a'
into
  CHARACTER (LEN=20), DIMENSION(nvar),  PARAMETER :: var  = 'a'
and the ICE is gone.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |19276
              nThis|                            |


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



More information about the Gcc-bugs mailing list