[Bug fortran/49802] [F2003, F2008] Wrong code with VALUE, F2008: VALUE with arrays/DIMENSION
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 21 10:21:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49802
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-07-21 10:21:22 UTC ---
(In reply to comment #3)
> by_value (character(kind=1)[1:_y] y, integer(kind=4) _y)
Technically, it makes sense that it does not work: The caller passes <m>+<n>
bytes: sizeof(str) and sizeof(strlen); in this example: 10 bytes for str and 4
bytes for the length (value: 10). How should the poor callee know which bytes
belong to the string length?
That's different to printf(char *format, ...): There one first knows what to
expect before the unknown data comes.
More information about the Gcc-bugs
mailing list