public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67885] New: ICE on using parameter array in block
@ 2015-10-07 19:06 gerhard.steinmetz.fortran@t-online.de
  2015-10-07 19:08 ` [Bug fortran/67885] " gerhard.steinmetz.fortran@t-online.de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-10-07 19:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67885

            Bug ID: 67885
           Summary: ICE on using parameter array in block
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Using a parameter array in a block with an inner block :

$ cat z1.f90
program p
   block
      real, parameter :: a(2) = 1.0
      real :: x(2)
      x = a
      block
      end block
   end block
end


$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize z1.f90
internal compiler error: in gfc_process_block_locals, at
fortran/trans-decl.c:6096

Same issue when using other intrinsic types, etc.

---

Compiles without parameter attribute :

$ cat z2.f90
program p
   block
      real :: a(2) = 1.0
      real :: x(2)
      x = a
      block
      end block
   end block
end


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-29 19:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-07 19:06 [Bug fortran/67885] New: ICE on using parameter array in block gerhard.steinmetz.fortran@t-online.de
2015-10-07 19:08 ` [Bug fortran/67885] " gerhard.steinmetz.fortran@t-online.de
2015-10-07 22:58 ` kargl at gcc dot gnu.org
2015-10-12 16:34 ` gerhard.steinmetz.fortran@t-online.de
2015-10-26 19:02 ` kargl at gcc dot gnu.org
2015-10-29  9:47 ` dominiq at lps dot ens.fr
2015-10-29 17:07 ` kargl at gcc dot gnu.org
2015-10-29 19:53 ` kargl at gcc dot gnu.org
2015-10-29 19:54 ` kargl at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).