public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/16919] New: ICE with derived type and array constructor
@ 2004-08-08 14:22 pbrook at gcc dot gnu dot org
  2004-08-08 14:22 ` [Bug fortran/16919] " pbrook at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2004-08-08 14:22 UTC (permalink / raw)
  To: gcc-bugs

Derived type constructors containing array constructors don't work: 
 
program myprog 
  integer i 
  type t 
    integer, dimension(5) :: a 
  end type 
  type (t) :: v 
  v = t((/1, 2, 3, 4, 5/)) 
  v = t((/(i, i=1,5)/)) 
end program 
 
Gives: 
 
trans-expr.c:1365: gfc_conv_array_constructor_expr: Assertion `se->ss != 
((void *)0) && se->ss != gfc_ss_terminator' failed.

-- 
           Summary: ICE with derived type and array constructor
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pbrook at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/16919] ICE with derived type and array constructor
  2004-08-08 14:22 [Bug fortran/16919] New: ICE with derived type and array constructor pbrook at gcc dot gnu dot org
@ 2004-08-08 14:22 ` pbrook at gcc dot gnu dot org
  2004-08-08 15:54 ` pbrook at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2004-08-08 14:22 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |15502
              nThis|                            |


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


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

* [Bug fortran/16919] ICE with derived type and array constructor
  2004-08-08 14:22 [Bug fortran/16919] New: ICE with derived type and array constructor pbrook at gcc dot gnu dot org
  2004-08-08 14:22 ` [Bug fortran/16919] " pbrook at gcc dot gnu dot org
@ 2004-08-08 15:54 ` pbrook at gcc dot gnu dot org
  2004-08-09 23:33 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2004-08-08 15:54 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-08 15:54:43
               date|                            |


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


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

* [Bug fortran/16919] ICE with derived type and array constructor
  2004-08-08 14:22 [Bug fortran/16919] New: ICE with derived type and array constructor pbrook at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-08-09 23:33 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-09 23:33 ` pbrook at gcc dot gnu dot org
  2004-08-25 17:03 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2004-08-09 23:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pbrook at gcc dot gnu dot org  2004-08-09 23:33 -------
Fixed. 

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


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


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

* [Bug fortran/16919] ICE with derived type and array constructor
  2004-08-08 14:22 [Bug fortran/16919] New: ICE with derived type and array constructor pbrook at gcc dot gnu dot org
  2004-08-08 14:22 ` [Bug fortran/16919] " pbrook at gcc dot gnu dot org
  2004-08-08 15:54 ` pbrook at gcc dot gnu dot org
@ 2004-08-09 23:33 ` cvs-commit at gcc dot gnu dot org
  2004-08-09 23:33 ` pbrook at gcc dot gnu dot org
  2004-08-25 17:03 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-09 23:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-09 23:33 -------
Subject: Bug 16919

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pbrook@gcc.gnu.org	2004-08-09 23:33:00

Modified files:
	gcc/fortran    : ChangeLog trans-array.c trans-expr.c trans.h 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.dg: der_array_1.f90 

Log message:
	PR fortran/16919
	* trans-array.c (gfc_add_loop_ss_code): Handle GFC_SS_COMPONENT.
	(gfc_conv_array_index_offset): Allow "temporary" with nonzero delta.
	(gfc_trans_preloop_setup, gfc_trans_scalarized_loop_boundary):
	Handle GFC_SS_COMPONENT.
	(gfc_conv_ss_startstride): Ditto.  Set ss->shape.
	(gfc_conv_loop_setup): Tweak commends. Remove dead code.
	Use ss->shape.
	(gfc_conv_array_initializer): Call specific initializer routines.
	* trans-expr.c (gfc_trans_structure_assign): New function.
	(gfc_trans_subarray_assign): New function.
	(gfc_trans_subcomponent_assign): New fucntion
	(gfc_conv_structure): Use them.
	* trans.h (gfc_ss_type): Add GFC_SS_COMPONENT.
	(gfc_ss): Add shape.
	testsuite/
	* gfortran.dg/der_array_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.142&r2=1.143
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&r1=1.12&r2=1.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&r1=1.17&r2=1.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans.h.diff?cvsroot=gcc&r1=1.9&r2=1.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4111&r2=1.4112
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/der_array_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug fortran/16919] ICE with derived type and array constructor
  2004-08-08 14:22 [Bug fortran/16919] New: ICE with derived type and array constructor pbrook at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-08-09 23:33 ` pbrook at gcc dot gnu dot org
@ 2004-08-25 17:03 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-25 17:03 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.5.0


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


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

end of thread, other threads:[~2004-08-25 17:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-08 14:22 [Bug fortran/16919] New: ICE with derived type and array constructor pbrook at gcc dot gnu dot org
2004-08-08 14:22 ` [Bug fortran/16919] " pbrook at gcc dot gnu dot org
2004-08-08 15:54 ` pbrook at gcc dot gnu dot org
2004-08-09 23:33 ` cvs-commit at gcc dot gnu dot org
2004-08-09 23:33 ` pbrook at gcc dot gnu dot org
2004-08-25 17:03 ` 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).