This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25030] Character pointer can associated with not the same length character variable.
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Nov 2005 10:04:49 -0000
- Subject: [Bug fortran/25030] Character pointer can associated with not the same length character variable.
- References: <bug-25030-9795@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from fxcoudert at gcc dot gnu dot org 2005-11-26 10:04 -------
This was fixed at some point, since current gfortran mainline (4.2) does it the
way you want:
$ gfortran u.f90 && ./a.out
test string
But indeed, Intel output a garbage string, g95 and Sun f90 reject the code. Can
someone confirm that this code is indeed processor-dependent according to the
standard?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25030