public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15314] New: [gfortran] ICE caused by array initializer in derived type definition
@ 2004-05-06 12:22 lei at il dot ibm dot com
  2004-05-06 12:55 ` [Bug fortran/15314] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: lei at il dot ibm dot com @ 2004-05-06 12:22 UTC (permalink / raw)
  To: gcc-bugs

% ~/tree-ssa-20040430/bin/gfortran defect_derived_init.f90
defect_derived_init.f90: In function `MAIN__':
defect_derived_init.f90:0: internal compiler error: in simplify_subreg, at
simplify-rtx.c:3439

% cat defect_derived_init.f90
program main

  type foo
     integer :: a(10) = 1
     integer :: b = 1
  end type foo

  type(foo) :: x
  print*, x%b
end program main

-- 
           Summary: [gfortran] ICE caused by array initializer in derived
                    type definition
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lei at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug fortran/15314] [gfortran] ICE caused by array initializer in derived type definition
  2004-05-06 12:22 [Bug fortran/15314] New: [gfortran] ICE caused by array initializer in derived type definition lei at il dot ibm dot com
@ 2004-05-06 12:55 ` pinskia at gcc dot gnu dot org
  2004-05-06 12:59 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 12:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-06 12:55 -------
Confirmed, the issue is that the front-end is not expanding the following right:
     integer :: a(10) = 1
It is just doing:
  static struct foo x = {.a=1, .b=1};

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-06 12:55:46
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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

* [Bug fortran/15314] [gfortran] ICE caused by array initializer in derived type definition
  2004-05-06 12:22 [Bug fortran/15314] New: [gfortran] ICE caused by array initializer in derived type definition lei at il dot ibm dot com
  2004-05-06 12:55 ` [Bug fortran/15314] " pinskia at gcc dot gnu dot org
@ 2004-05-06 12:59 ` pinskia at gcc dot gnu dot org
  2004-05-13 14:37 ` lei at il dot ibm dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 12:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-06 12:59 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-05/msg00342.html>.  Looks like I analysised 
the problem right this time.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug fortran/15314] [gfortran] ICE caused by array initializer in derived type definition
  2004-05-06 12:22 [Bug fortran/15314] New: [gfortran] ICE caused by array initializer in derived type definition lei at il dot ibm dot com
  2004-05-06 12:55 ` [Bug fortran/15314] " pinskia at gcc dot gnu dot org
  2004-05-06 12:59 ` pinskia at gcc dot gnu dot org
@ 2004-05-13 14:37 ` lei at il dot ibm dot com
  2004-05-14 16:29 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: lei at il dot ibm dot com @ 2004-05-13 14:37 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |lei at il dot ibm dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug fortran/15314] [gfortran] ICE caused by array initializer in derived type definition
  2004-05-06 12:22 [Bug fortran/15314] New: [gfortran] ICE caused by array initializer in derived type definition lei at il dot ibm dot com
                   ` (2 preceding siblings ...)
  2004-05-13 14:37 ` lei at il dot ibm dot com
@ 2004-05-14 16:29 ` cvs-commit at gcc dot gnu dot org
  2004-05-14 16:54 ` cvs-commit at gcc dot gnu dot org
  2004-05-14 17:00 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-14 16:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-13 23:11 -------
Subject: Bug 15314

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pbrook@gcc.gnu.org	2004-05-13 23:11:48

Modified files:
	gcc/fortran    : ChangeLog trans-expr.c 

Log message:
	PR fortran/15314
	* trans-expr.c (gfc_conv_structure): Use field type, not expr type.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&r1=1.2&r2=1.3



-- 


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


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

* [Bug fortran/15314] [gfortran] ICE caused by array initializer in derived type definition
  2004-05-06 12:22 [Bug fortran/15314] New: [gfortran] ICE caused by array initializer in derived type definition lei at il dot ibm dot com
                   ` (3 preceding siblings ...)
  2004-05-14 16:29 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-14 16:54 ` cvs-commit at gcc dot gnu dot org
  2004-05-14 17:00 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-14 16:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-13 23:22 -------
Subject: Bug 15314

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pbrook@gcc.gnu.org	2004-05-13 23:22:13

Modified files:
	gcc/fortran    : ChangeLog 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.fortran-torture/execute: der_init_2.f90 

Log message:
	PR fortran/15314
	* gfortran.fortran-torture/execute/der_init_s.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3739&r2=1.3740
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/der_init_2.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug fortran/15314] [gfortran] ICE caused by array initializer in derived type definition
  2004-05-06 12:22 [Bug fortran/15314] New: [gfortran] ICE caused by array initializer in derived type definition lei at il dot ibm dot com
                   ` (4 preceding siblings ...)
  2004-05-14 16:54 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-14 17:00 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-14 17:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-13 23:56 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-05-13 23:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06 12:22 [Bug fortran/15314] New: [gfortran] ICE caused by array initializer in derived type definition lei at il dot ibm dot com
2004-05-06 12:55 ` [Bug fortran/15314] " pinskia at gcc dot gnu dot org
2004-05-06 12:59 ` pinskia at gcc dot gnu dot org
2004-05-13 14:37 ` lei at il dot ibm dot com
2004-05-14 16:29 ` cvs-commit at gcc dot gnu dot org
2004-05-14 16:54 ` cvs-commit at gcc dot gnu dot org
2004-05-14 17:00 ` pinskia at gcc dot gnu dot 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).