This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30783] "character(*), value" produces SEGV at runtime
- 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: 13 Feb 2007 18:19:11 -0000
- Subject: [Bug fortran/30783] "character(*), value" produces SEGV at runtime
- References: <bug-30783-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-02-13 18:19 -------
>From the Fortran 2003 standard:
--------------
C528 (R501) If the VALUE attribute is specified, the length type parameter
values shall be omitted or specified by initialization expressions.
--------------
Which rules out deferred type parameters such as "*" or ":".
However, I fail to see anything which rules out "(10)" even though also sunf95
and NAG f95 claim that anything but nothing or "(1)" is wrong.
ifort and g95 allow "(10)" but crash or at least access uninitialized memory.
And as said: gfortran allows "(10)" and it works properly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30783