This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33241] ICE with parameter string arrays
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2007 09:04:40 -0000
- Subject: [Bug fortran/33241] ICE with parameter string arrays
- References: <bug-33241-15039@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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