public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
@ 2004-08-26 14:58 c dot lemmen at fz-juelich dot de
  2004-08-26 15:02 ` [Bug fortran/17202] " c dot lemmen at fz-juelich dot de
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: c dot lemmen at fz-juelich dot de @ 2004-08-26 14:58 UTC (permalink / raw)
  To: gcc-bugs

gcc version 3.5.0 20040826 (experimental)
> gfortran -c testcase_nrtype.f90
f951: fortran/trans-array.c:217: gfc_conv_descriptor_dtype: Assertion
`((type)->type.lang_flag_1)' failed.
testcase_nrtype.f90: In function `reallocate_hv':
testcase_nrtype.f90:21: internal compiler error: Aborted

*******************************
  function reallocate_hv(p,n)
    
    character,dimension(:),pointer :: reallocate_hv
    integer, intent(in) :: n
    
    allocate(reallocate_hv(n))

  end function reallocate_hv
***********************************

This bug is probably related to PR 15972 and PR 15809.  Is it a DUP?.
ICE occurs at different position in trans-types.c though:

PR 15972 trans-array.c:3025: gfc_trans_dummy_array_bias
PR 15809trans-array.c:184:  gfc_conv_descriptor_data
This bug trans-array.c:217: gfc_conv_descriptor_dtype

-- 
           Summary: ice-on-valid-code, trans-array.c:217:
                    gfc_conv_descriptor_dtype Assertion failed
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: c dot lemmen at fz-juelich dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
@ 2004-08-26 15:02 ` c dot lemmen at fz-juelich dot de
  2004-08-26 15:03 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: c dot lemmen at fz-juelich dot de @ 2004-08-26 15:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From c dot lemmen at fz-juelich dot de  2004-08-26 15:01 -------
Created an attachment (id=6991)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6991&action=view)
Reduced testcase from Numerical Recipes Library

Works in g95 and all commercial compilers.  This is rather serious since the
code is necessary for the widely used numerical recipes library

-- 


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
  2004-08-26 15:02 ` [Bug fortran/17202] " c dot lemmen at fz-juelich dot de
@ 2004-08-26 15:03 ` pinskia at gcc dot gnu dot org
  2004-09-20  9:41 ` reichelt at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-26 15:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-26 15:03 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-26 15:03:30
               date|                            |


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
  2004-08-26 15:02 ` [Bug fortran/17202] " c dot lemmen at fz-juelich dot de
  2004-08-26 15:03 ` pinskia at gcc dot gnu dot org
@ 2004-09-20  9:41 ` reichelt at gcc dot gnu dot org
  2004-11-04  9:08 ` c dot lemmen at fz-juelich dot de
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-20  9:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-09-20 09:41 -------
Crashes with fixed length, too:

==========================================
function foo
    character,dimension(:),pointer :: foo
    allocate(foo(1))
end function
==========================================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
                   ` (2 preceding siblings ...)
  2004-09-20  9:41 ` reichelt at gcc dot gnu dot org
@ 2004-11-04  9:08 ` c dot lemmen at fz-juelich dot de
  2005-01-25  0:20 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: c dot lemmen at fz-juelich dot de @ 2004-11-04  9:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From c dot lemmen at fz-juelich dot de  2004-11-04 09:08 -------
Still persists, occurs at line 216 now

gcc-Version 4.0.0 20041104 (experimental)
GNU F95 version 4.0.0 20041104 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 4.0.0 20041028 (experimental).

testcase_nrtype.f90:16: interner Compiler-Fehler: in gfc_conv_descriptor_dtype,
bei fortran/trans-array.c:216


-- 


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
                   ` (3 preceding siblings ...)
  2004-11-04  9:08 ` c dot lemmen at fz-juelich dot de
@ 2005-01-25  0:20 ` pinskia at gcc dot gnu dot org
  2005-03-27 22:20 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-25  0:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-25 00:20 -------
*** Bug 19617 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gay at sfu dot ca


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
                   ` (4 preceding siblings ...)
  2005-01-25  0:20 ` pinskia at gcc dot gnu dot org
@ 2005-03-27 22:20 ` pinskia at gcc dot gnu dot org
  2005-05-29 16:03 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-27 22:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-27 22:20 -------
*** Bug 20664 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu dot org


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
                   ` (5 preceding siblings ...)
  2005-03-27 22:20 ` pinskia at gcc dot gnu dot org
@ 2005-05-29 16:03 ` cvs-commit at gcc dot gnu dot org
  2005-06-05  9:01 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-29 16:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-29 16:02 -------
Subject: Bug 17202

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pault@gcc.gnu.org	2005-05-29 16:02:11

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

Log message:
	2005-05-29 Paul Thomas  <pault@gcc.gnu.org>
	
	PR fortran/16939
	PR fortran/17192
	PR fortran/17193
	PR fortran/17202
	PR fortran/18689
	PR fortran/18890
	PR fortran/21297
	* fortran/trans-array.c (gfc_conv_resolve_dependencies): Add string
	length to temp_ss for character pointer array assignments.
	* fortran/trans-expr.c (gfc_conv_variable): Correct errors in
	dereferencing of characters and character pointers.
	* fortran/trans-expr.c (gfc_conv_function_call): Provide string
	length as return argument for various kinds of handling of return.
	Return a char[]* temporary for character pointer functions and
	dereference the temporary upon return.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&r1=1.45&r2=1.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&r1=1.44&r2=1.45



-- 


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
                   ` (6 preceding siblings ...)
  2005-05-29 16:03 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-05  9:01 ` cvs-commit at gcc dot gnu dot org
  2005-06-05 22:44 ` pault at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-05  9:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-05 08:59 -------
Subject: Bug 17202

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	pault@gcc.gnu.org	2005-06-05 08:59:18

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

Log message:
	005-05-31  Paul Thomas  <pault@gcc.gnu.org>
	
	PR fortran/18109
	PR fortran/18283
	PR fortran/19107
	PR fortran/16939
	PR fortran/17192
	PR fortran/17193
	PR fortran/17202
	PR fortran/18689
	PR fortran/18890
	* fortran/trans-array.c (gfc_conv_expr_descriptor): Obtain the
	string length from the expression typespec character length value
	and set temp_ss->stringlength and backend_decl. Obtain the
	tree expression from gfc_conv_expr rather than gfc_conv_expr_val.
	Dereference the expression to obtain the character.
	* fortran/trans-array.c (gfc_conv_resolve_dependencies): Add string
	length to temp_ss for character pointer array assignments.
	* fortran/trans-expr.c (gfc_conv_component_ref): Remove the
	dereference of scalar character pointer structure components.
	* fortran/trans-expr.c (gfc_trans_subarray_assign): Obtain the
	string length for the structure component from the component
	expression.
	* fortran/trans-expr.c (gfc_conv_variable): Correct errors in
	dereferencing of characters and character pointers.
	* fortran/trans-expr.c (gfc_conv_function_call): Provide string
	length as return argument for various kinds of handling of return.
	Return a char[]* temporary for character pointer functions and
	dereference the temporary upon return.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.66&r2=1.335.2.67
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.39.2.3&r2=1.39.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.38.2.4&r2=1.38.2.5



-- 


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
                   ` (7 preceding siblings ...)
  2005-06-05  9:01 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-05 22:44 ` pault at gcc dot gnu dot org
  2005-06-05 22:45 ` pault at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-06-05 22:44 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 17202 depends on bug 17193, which changed state.

Bug 17193 Summary: [meta-bug] Pointer arguments not working correctly
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17193

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
                   ` (8 preceding siblings ...)
  2005-06-05 22:44 ` pault at gcc dot gnu dot org
@ 2005-06-05 22:45 ` pault at gcc dot gnu dot org
  2005-06-05 22:51 ` pinskia at gcc dot gnu dot org
  2005-06-11 22:45 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-06-05 22:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pault at gcc dot gnu dot org  2005-06-05 22:45 -------
Fixed in 4.0 and 4.1

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


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
                   ` (9 preceding siblings ...)
  2005-06-05 22:45 ` pault at gcc dot gnu dot org
@ 2005-06-05 22:51 ` pinskia at gcc dot gnu dot org
  2005-06-11 22:45 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-05 22:51 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.1


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


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

* [Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed
  2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
                   ` (10 preceding siblings ...)
  2005-06-05 22:51 ` pinskia at gcc dot gnu dot org
@ 2005-06-11 22:45 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-11 22:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 22:45 -------
*** Bug 22023 has been marked as a duplicate of this bug. ***

-- 


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


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

end of thread, other threads:[~2005-06-11 22:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-26 14:58 [Bug fortran/17202] New: ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed c dot lemmen at fz-juelich dot de
2004-08-26 15:02 ` [Bug fortran/17202] " c dot lemmen at fz-juelich dot de
2004-08-26 15:03 ` pinskia at gcc dot gnu dot org
2004-09-20  9:41 ` reichelt at gcc dot gnu dot org
2004-11-04  9:08 ` c dot lemmen at fz-juelich dot de
2005-01-25  0:20 ` pinskia at gcc dot gnu dot org
2005-03-27 22:20 ` pinskia at gcc dot gnu dot org
2005-05-29 16:03 ` cvs-commit at gcc dot gnu dot org
2005-06-05  9:01 ` cvs-commit at gcc dot gnu dot org
2005-06-05 22:44 ` pault at gcc dot gnu dot org
2005-06-05 22:45 ` pault at gcc dot gnu dot org
2005-06-05 22:51 ` pinskia at gcc dot gnu dot org
2005-06-11 22:45 ` 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).