public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
@ 2004-11-02 23:48 anlauf at hep dot tu-darmstadt dot de
  2004-11-02 23:54 ` [Bug fortran/18283] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2004-11-02 23:48 UTC (permalink / raw)
  To: gcc-bugs

Hi,

the following code snippet does not compile:

program gfcbug20
  implicit none

  type :: a_t                       
     character, pointer :: line
!     character (len=1), pointer :: line
  end type a_t

  type (a_t) :: a = a_t ( NULL() )

  character, target :: b
!  character (len=1), target :: b

  a% line => b

end program gfcbug20


I get:

gfcbug20.f90: In function 'MAIN__':
gfcbug20.f90:14: internal compiler error: in gfc_conv_string_parameter, at fortr
an/trans-expr.c:1982

Replacing the character variable in the derived type (as well as
the target) by an integer "solves" the problem.

Cheers,
-ha

-- 
           Summary: gfortran: ICE in gfc_conv_string_parameter, trans-
                    expr.c:1982
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at hep dot tu-darmstadt dot de
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
@ 2004-11-02 23:54 ` pinskia at gcc dot gnu dot org
  2004-11-03  0:09 ` anlauf at hep dot tu-darmstadt dot de
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-02 23:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-02 23:54 -------
I think this is the same as PR 18023.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |18023


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


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
  2004-11-02 23:54 ` [Bug fortran/18283] " pinskia at gcc dot gnu dot org
@ 2004-11-03  0:09 ` anlauf at hep dot tu-darmstadt dot de
  2004-11-05  1:39 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2004-11-03  0:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From anlauf at hep dot tu-darmstadt dot de  2004-11-03 00:09 -------
(In reply to comment #1)
> I think this is the same as PR 18023.

Well, actually I get slightly different line numbers with my example and
the example of PR 18023 (1982 vs. 1986).  Maybe they're related, maybe not.

Cheers,
-ha


-- 


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


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
  2004-11-02 23:54 ` [Bug fortran/18283] " pinskia at gcc dot gnu dot org
  2004-11-03  0:09 ` anlauf at hep dot tu-darmstadt dot de
@ 2004-11-05  1:39 ` pinskia at gcc dot gnu dot org
  2004-11-06 12:52 ` tobi at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-05  1:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-05 01:39 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-05 01:39:25
               date|                            |


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


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
                   ` (2 preceding siblings ...)
  2004-11-05  1:39 ` pinskia at gcc dot gnu dot org
@ 2004-11-06 12:52 ` tobi at gcc dot gnu dot org
  2005-05-01 14:19 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-11-06 12:52 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 18283 depends on bug 18023, which changed state.

Bug 18023 Summary: ice on trying to convert between int and float
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18023

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

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


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
                   ` (3 preceding siblings ...)
  2004-11-06 12:52 ` tobi at gcc dot gnu dot org
@ 2005-05-01 14:19 ` pinskia at gcc dot gnu dot org
  2005-05-01 15:19 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-01 14:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-01 14:19 -------
Fixed for 4.0.0.

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


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


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
                   ` (4 preceding siblings ...)
  2005-05-01 14:19 ` pinskia at gcc dot gnu dot org
@ 2005-05-01 15:19 ` pinskia at gcc dot gnu dot org
  2005-05-01 15:19 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-01 15:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-01 15:19 -------
Woops I must have used the wrong file to test with.

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


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


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
                   ` (5 preceding siblings ...)
  2005-05-01 15:19 ` pinskia at gcc dot gnu dot org
@ 2005-05-01 15:19 ` pinskia at gcc dot gnu dot org
  2005-05-31 17:23 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-01 15:19 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW
   Target Milestone|4.0.0                       |---


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


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
                   ` (6 preceding siblings ...)
  2005-05-01 15:19 ` pinskia at gcc dot gnu dot org
@ 2005-05-31 17:23 ` cvs-commit at gcc dot gnu dot org
  2005-06-05  9:00 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-31 17:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-31 17:19 -------
Subject: Bug 18283

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pault@gcc.gnu.org	2005-05-31 17:19:12

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

Log message:
	2005-05-30  Paul Thomas  <pault@gcc.gnu.org>
	
	PR fortran/18109
	PR fortran/18283
	PR fortran/19107
	* 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-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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.444&r2=1.445
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&r1=1.46&r2=1.47
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&r1=1.47&r2=1.48



-- 


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


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
                   ` (7 preceding siblings ...)
  2005-05-31 17:23 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-05  9:00 ` cvs-commit at gcc dot gnu dot org
  2005-06-05 22:40 ` pault at gcc dot gnu dot org
  2005-06-05 23:43 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-05  9:00 UTC (permalink / raw)
  To: gcc-bugs


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

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=18283


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
                   ` (8 preceding siblings ...)
  2005-06-05  9:00 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-05 22:40 ` pault at gcc dot gnu dot org
  2005-06-05 23:43 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-06-05 22:40 UTC (permalink / raw)
  To: gcc-bugs


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


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


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


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

* [Bug fortran/18283] gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982
  2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
                   ` (9 preceding siblings ...)
  2005-06-05 22:40 ` pault at gcc dot gnu dot org
@ 2005-06-05 23:43 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-05 23:43 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

end of thread, other threads:[~2005-06-05 23:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-02 23:48 [Bug fortran/18283] New: gfortran: ICE in gfc_conv_string_parameter, trans-expr.c:1982 anlauf at hep dot tu-darmstadt dot de
2004-11-02 23:54 ` [Bug fortran/18283] " pinskia at gcc dot gnu dot org
2004-11-03  0:09 ` anlauf at hep dot tu-darmstadt dot de
2004-11-05  1:39 ` pinskia at gcc dot gnu dot org
2004-11-06 12:52 ` tobi at gcc dot gnu dot org
2005-05-01 14:19 ` pinskia at gcc dot gnu dot org
2005-05-01 15:19 ` pinskia at gcc dot gnu dot org
2005-05-01 15:19 ` pinskia at gcc dot gnu dot org
2005-05-31 17:23 ` cvs-commit at gcc dot gnu dot org
2005-06-05  9:00 ` cvs-commit at gcc dot gnu dot org
2005-06-05 22:40 ` pault at gcc dot gnu dot org
2005-06-05 23:43 ` 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).