------- Comment #4 from pault at gcc dot gnu dot org 2008-01-03 15:24 ------- (In reply to comment #3) > Reduced test; has nothing to do with BIND(C). I am not 100% sure it is valid. > (Actually, glancing at the code, I had said it is invalid). However, it gives > no error/warning (or ICE) with other compilers such as NAG f95, g95, openf95, > ifort, which implies that it is presumably valid.
It is valid and runs OK, as long as 'values' is not a dummy. This is because gfc_get_symbol_decl does not set GFC_DECL_SPAN for pointers.... I forgot about it, apparently. I'm taking a look at how it might be done. Paul -- pault at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2008-01-03 08:19:08 |2008-01-03 15:24:11 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34640