[Bug fortran/25030] Character pointer can associated with not the same length character variable.
kargl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 26 16:12:00 GMT 2005
------- Comment #3 from kargl at gcc dot gnu dot org 2005-11-26 16:12 -------
I believe the code is illegal from 7.5.2, page 110,
Constraint: The target shall be of the same type, kind type parameters,
and rank as the pointer.
Then on page 111, you find "The target shall have the same type parameters
as the pointer-object."
BTW, both Lahey's web-based checking utility and NAG's compiler
rejects this code.
BTW2, gfortran 4.2 compiles the code, but I get garbage.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25030
More information about the Gcc-bugs
mailing list