This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34396] Length of substrings defined by expressions not correctly computed in constructors
- 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: 8 Dec 2007 23:02:57 -0000
- Subject: [Bug fortran/34396] Length of substrings defined by expressions not correctly computed in constructors
- References: <bug-34396-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2007-12-08 23:02 -------
According to NAG f95 the program is invalid; it prints at run time:
Unequal character lengths (1 and 2) in array constructor
Program terminated by fatal error
In ARRAY_CHAR, line 9 of aaa.f90
I actually would expect gfortran to diagnose this with -fbounds-check.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34396