public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67616] New: ICE on data initialization of type variable in block
@ 2015-09-17 18:10 gerhard.steinmetz.fortran@t-online.de
  2015-09-17 18:11 ` [Bug fortran/67616] " gerhard.steinmetz.fortran@t-online.de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-09-17 18:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67616
           Summary: ICE on data initialization of type variable 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: ---

With an embedding block construct :

$ cat z1.f90
program p
   type t
   end type
   block
      type(t) :: x
      data x /t()/
   end block
end

$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize z1.f90
f951: internal compiler error: in gfc_match_structure_constructor, at
fortran/primary.c:2655


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

* [Bug fortran/67616] ICE on data initialization of type variable in block
  2015-09-17 18:10 [Bug fortran/67616] New: ICE on data initialization of type variable in block gerhard.steinmetz.fortran@t-online.de
@ 2015-09-17 18:11 ` gerhard.steinmetz.fortran@t-online.de
  2015-09-17 22:41 ` dominiq at lps dot ens.fr
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gerhard.steinmetz.fortran@t-online.de @ 2015-09-17 18:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Compiles without block :

program p
   type t
   end type
   type(t) :: x
   data x /t()/
end


Compiles with block and intrinsic type :

program p
   block
      integer :: x
      data x /1/
   end block
end


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

* [Bug fortran/67616] ICE on data initialization of type variable in block
  2015-09-17 18:10 [Bug fortran/67616] New: ICE on data initialization of type variable in block gerhard.steinmetz.fortran@t-online.de
  2015-09-17 18:11 ` [Bug fortran/67616] " gerhard.steinmetz.fortran@t-online.de
@ 2015-09-17 22:41 ` dominiq at lps dot ens.fr
  2015-10-02  0:46 ` kargl at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-09-17 22:41 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-17
     Ever confirmed|0                           |1

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 4.8 up to trunk (6.0).


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

* [Bug fortran/67616] ICE on data initialization of type variable in block
  2015-09-17 18:10 [Bug fortran/67616] New: ICE on data initialization of type variable in block gerhard.steinmetz.fortran@t-online.de
  2015-09-17 18:11 ` [Bug fortran/67616] " gerhard.steinmetz.fortran@t-online.de
  2015-09-17 22:41 ` dominiq at lps dot ens.fr
@ 2015-10-02  0:46 ` kargl at gcc dot gnu.org
  2015-10-02 21:12 ` kargl at gcc dot gnu.org
  2015-10-02 21:30 ` kargl at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-10-02  0:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Fri Oct  2 00:45:59 2015
New Revision: 228363

URL: https://gcc.gnu.org/viewcvs?rev=228363&root=gcc&view=rev
Log:
2015-10-01  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/67616
        * primary.c (gfc_match_structure_constructor): Use a possibly
        host-associated symtree to prevent ICE.

2015-10-01  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/67616
        * gfortran.dg/pr67616.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/pr67616.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/primary.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug fortran/67616] ICE on data initialization of type variable in block
  2015-09-17 18:10 [Bug fortran/67616] New: ICE on data initialization of type variable in block gerhard.steinmetz.fortran@t-online.de
                   ` (2 preceding siblings ...)
  2015-10-02  0:46 ` kargl at gcc dot gnu.org
@ 2015-10-02 21:12 ` kargl at gcc dot gnu.org
  2015-10-02 21:30 ` kargl at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-10-02 21:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Fri Oct  2 21:11:47 2015
New Revision: 228427

URL: https://gcc.gnu.org/viewcvs?rev=228427&root=gcc&view=rev
Log:
2015-10-01  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/67616
        * primary.c (gfc_match_structure_constructor): Use a possibly
        host-associated symtree to prevent ICE.

2015-10-01  Steven G. Kargl  <kargl@gcc.gnu.org>

        PR fortran/67616
        * gfortran.dg/pr67616.f90: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/gfortran.dg/pr67616.f90
Modified:
    branches/gcc-5-branch/gcc/fortran/ChangeLog
    branches/gcc-5-branch/gcc/fortran/primary.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog


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

* [Bug fortran/67616] ICE on data initialization of type variable in block
  2015-09-17 18:10 [Bug fortran/67616] New: ICE on data initialization of type variable in block gerhard.steinmetz.fortran@t-online.de
                   ` (3 preceding siblings ...)
  2015-10-02 21:12 ` kargl at gcc dot gnu.org
@ 2015-10-02 21:30 ` kargl at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-10-02 21:30 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.3

--- Comment #5 from kargl at gcc dot gnu.org ---
Fixed on trunk and 5-branch.  Thanks for the bug report.


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

end of thread, other threads:[~2015-10-02 21:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-17 18:10 [Bug fortran/67616] New: ICE on data initialization of type variable in block gerhard.steinmetz.fortran@t-online.de
2015-09-17 18:11 ` [Bug fortran/67616] " gerhard.steinmetz.fortran@t-online.de
2015-09-17 22:41 ` dominiq at lps dot ens.fr
2015-10-02  0:46 ` kargl at gcc dot gnu.org
2015-10-02 21:12 ` kargl at gcc dot gnu.org
2015-10-02 21:30 ` 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).