------- Comment #2 from burnus at gcc dot gnu dot org  2009-06-16 21:32 -------
Wrong quote - and wrong statement. It is not a F2003 change, but already in
F95.

Fortran 95 has (12.4.1.4 Sequence association)

"If the actual argument is of type default character and is an array
 expression, array element, or array element substring designator, the
 element sequence consists of the character storage units beginning with
 the first storage unit of the actual argument and continuing to the end
 of the array. The character storage units of an array element substring
 designator are viewed as array elements consisting of consecutive groups
 of character storage units having the character length of the dummy
 array."

Fortran 2003 has in 12.4.1.5 the same (except of allowing C_CHAR) and
then continues with

"If the actual argument is of type default character or of type character
 with the C character kind, and is a scalar that is not an array element
 or array element substring designator, the element sequence consists of
 the storage units of the actual argument."

(The addition is not important for us, but it allows to pass "a string"
 to a BIND(C) procedure which has "character(len=1):: str(*)".)

 * * *

The crucial part is the "dummy array" at the end of the first excerpt.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |burnus at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-16 21:33:00
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40452

Reply via email to