[Bug fortran/49993] arrays declared as parameter are not allocated in read-only memory

arnaud02 at users dot sourceforge.net gcc-bugzilla@gcc.gnu.org
Tue Aug 9 20:25:00 GMT 2011


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

--- Comment #3 from Arnaud Desitter <arnaud02 at users dot sourceforge.net> 2011-08-09 20:24:59 UTC ---
"static int ia[] = { 2 };" is equivalent to "integer, save :: ia(1) = (/ 2 /)".
Anyway, the C example was there to show that allocating a constant array in the
rodata section is possible.



More information about the Gcc-bugs mailing list