[Bug fortran/51308] PARAMETER attribute conflicts with SAVE attribute
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 26 20:50:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51308
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-11-26
CC| |kargl at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from kargl at gcc dot gnu.org 2011-11-26 19:21:29 UTC ---
The problem comes about because of gen_special_c_interop_ptr() in
symbol.c has the following lines:
/* Set up the symbol's important fields. Save attr required so we can
initialize the ptr to NULL. */
tmp_sym->attr.save = SAVE_EXPLICIT;
I think that we should be setting
tmp_sym->attr.flavor = FL_PARAMETER;
or something equivalent rather than the save attribute.
More information about the Gcc-bugs
mailing list