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

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

            Bug ID: 66545
           Summary: ICE on using undefined parameter/variable values
           Product: gcc
           Version: 5.1.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: ---

This code uses parameter/variable values before they are defined/initialized.

$ cat z1_complex.f90
   program p
      complex, parameter :: c1 = (c1)
      complex, parameter :: c2 = c2
      complex :: c3 = (c3)
      complex :: c4 = c4
      complex :: c5
      complex :: c6
      c5 = (c5)
      c6 = c6
   end


For example, compiling with :

$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize \
                  -Wuninitialized -fsanitize=undefined \
                  -c z1_complex.f90


yields (with gfortran 5.1.1 on SUSE Linux 13.2, 64 bit) :
f951: internal compiler error: Segmentation fault


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

end of thread, other threads:[~2015-07-16 19:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-15 17:19 [Bug fortran/66545] New: ICE on using undefined parameter/variable values gerhard.steinmetz.fortran@t-online.de
2015-06-15 17:20 ` [Bug fortran/66545] " gerhard.steinmetz.fortran@t-online.de
2015-06-15 19:03 ` gerhard.steinmetz.fortran@t-online.de
2015-06-15 20:12 ` tkoenig at gcc dot gnu.org
2015-06-15 20:28 ` kargl at gcc dot gnu.org
2015-06-15 21:19 ` tkoenig at gcc dot gnu.org
2015-06-15 21:35 ` sgk at troutmask dot apl.washington.edu
2015-06-16 19:59 ` tkoenig at gcc dot gnu.org
2015-07-02 17:02 ` kargl at gcc dot gnu.org
2015-07-16 19:04 ` 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).