This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30940] Fortran 2003: Scalar CHARACTER supplied to array dummy
- 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: 21 Mar 2007 22:31:03 -0000
- Subject: [Bug fortran/30940] Fortran 2003: Scalar CHARACTER supplied to array dummy
- References: <bug-30940-13404@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-03-21 22:31 -------
Richard Main wrote in
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/5e91eb94c1ea71ec/
See Notes 15.29 and 15.23 for a (bried) explanation and
example of exactly this. I knoew this was an mportant issue; that's why
I wrote (the first draft of) Note 15.23.
See also pg 170, lines 25:26. The mention of the C character kind there
is specifically to guarantee that this will work even if the C character
kind doesn't happen to be the default kind. That was a special rule for
default character, but it was extended to also apply to the C character
kind. In essence, the rule amounts to a requirement that characters of
length greater than 1 be represented the same way as an array. It is
possible for there to be character kinds that aren't represented that
way (not that I know of any actual examples in existance).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30940