This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32707] mismatched character lengths in array
- From: "vivekrao4 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2007 19:05:45 -0000
- Subject: [Bug fortran/32707] mismatched character lengths in array
- References: <bug-32707-9647@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from vivekrao4 at yahoo dot com 2007-07-09 19:05 -------
Gfortran also does not warn about the simpler code
program xtrim_array
! check if compiler catches character array constructor with elements of
different sizes
implicit none
character (len=4) :: xx(2)
xx = ["boy","girl"]
print*,"xx = '" // xx(1) // "' '" // xx(2) // "'"
end program xtrim_array
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32707