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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #11 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to janus from comment #10)
> Created attachment 30584 [details]
> new patch

+  if ((gfc_current_state () == COMP_MODULE
+       || gfc_current_state () == COMP_PROGRAM)

I haven't tried the patch, but does it work correctly with BLOCK? (It might
well be valid.) For instance, "i" in the following code shouldn't acquire the
SAVE attribute:

  program main
    block
      integer :: i
    end block
  end program main

Reply via email to