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/33241] ICE with parameter string arrays



------- 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


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