public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24266]  New: ICE when writing to array of strings that is an elements of a user defined type
@ 2005-10-07 21:28 yosef at phys dot utb dot edu
  2005-10-07 21:36 ` [Bug fortran/24266] " yosef at phys dot utb dot edu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: yosef at phys dot utb dot edu @ 2005-10-07 21:28 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1491 bytes --]

Latest CVS version of gfortran segfauls when writing to a 
an array of strings that is part of a user defined type. 
The behavior is very similiar to 
PR 15966 (but not solved by that solution).

$ cat bug.f90
program main
  implicit none

  type ice
    character(len=80) :: mess(10)
  end type ice
  type(ice) :: tp

  ! leads to ICE
  write(tp%mess,*) "message"

end program main

$ gfortran bug.f90
bug.f90: In function ‘MAIN__’:
bug.f90:10: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/xxx/compiler/gcc
--enable-version-specific-runtime-libs
--with-gcc-version-trigger=/home/xxx/tmp/gcc/gcc/version.c
--enable-languages=c,c++,f95 --with-gmp=/home/xxx/compiler/gmp
--with-mpfr=/home/xxx/compiler/gmp
Thread model: posix
gcc version 4.1.0 20051007 (experimental)


-- 
           Summary: ICE when writing to array of strings that is an elements
                    of a user defined type
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yosef at phys dot utb dot edu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/24266] ICE when writing to array of strings that is an elements of a user defined type
  2005-10-07 21:28 [Bug fortran/24266] New: ICE when writing to array of strings that is an elements of a user defined type yosef at phys dot utb dot edu
@ 2005-10-07 21:36 ` yosef at phys dot utb dot edu
  2005-10-07 22:40 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: yosef at phys dot utb dot edu @ 2005-10-07 21:36 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]



------- Comment #1 from yosef at phys dot utb dot edu  2005-10-07 21:36 -------
This bug also seems to cause a segfault when 
writing to a standard array of strings.

program main
  implicit none

  type ice
    character(len=80) :: mess(10)
  end type ice
  character(len=80) :: smess(10)
  type(ice) :: tp

  ! leads to ICE (but only when 2nd write is included)
  write(smess,*) "message"

  write(tp%mess,*) "message"

end program main

$ gfortan bug2.f90
bug2.f90: In function ‘MAIN__’:
bug2.f90:11: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 


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


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

* [Bug fortran/24266] ICE when writing to array of strings that is an elements of a user defined type
  2005-10-07 21:28 [Bug fortran/24266] New: ICE when writing to array of strings that is an elements of a user defined type yosef at phys dot utb dot edu
  2005-10-07 21:36 ` [Bug fortran/24266] " yosef at phys dot utb dot edu
@ 2005-10-07 22:40 ` pinskia at gcc dot gnu dot org
  2006-01-01  6:53 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-07 22:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-10-07 22:39 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-07 22:39:59
               date|                            |


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


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

* [Bug fortran/24266] ICE when writing to array of strings that is an elements of a user defined type
  2005-10-07 21:28 [Bug fortran/24266] New: ICE when writing to array of strings that is an elements of a user defined type yosef at phys dot utb dot edu
  2005-10-07 21:36 ` [Bug fortran/24266] " yosef at phys dot utb dot edu
  2005-10-07 22:40 ` pinskia at gcc dot gnu dot org
@ 2006-01-01  6:53 ` pinskia at gcc dot gnu dot org
  2006-01-30 18:56 ` eedelman at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-01  6:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-01-01 06:53 -------
*** Bug 25041 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |haymaker at mail dot utexas
                   |                            |dot edu


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



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

* [Bug fortran/24266] ICE when writing to array of strings that is an elements of a user defined type
  2005-10-07 21:28 [Bug fortran/24266] New: ICE when writing to array of strings that is an elements of a user defined type yosef at phys dot utb dot edu
                   ` (2 preceding siblings ...)
  2006-01-01  6:53 ` pinskia at gcc dot gnu dot org
@ 2006-01-30 18:56 ` eedelman at gcc dot gnu dot org
  2006-01-30 22:24 ` eedelman at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-30 18:56 UTC (permalink / raw)
  To: gcc-bugs



-- 

eedelman at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eedelman at gcc dot gnu dot
                   |                            |org
         AssignedTo|unassigned at gcc dot gnu   |eedelman at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug fortran/24266] ICE when writing to array of strings that is an elements of a user defined type
  2005-10-07 21:28 [Bug fortran/24266] New: ICE when writing to array of strings that is an elements of a user defined type yosef at phys dot utb dot edu
                   ` (3 preceding siblings ...)
  2006-01-30 18:56 ` eedelman at gcc dot gnu dot org
@ 2006-01-30 22:24 ` eedelman at gcc dot gnu dot org
  2006-01-31 20:45 ` eedelman at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-30 22:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from eedelman at gcc dot gnu dot org  2006-01-30 22:24 -------
Subject: Bug 24266

Author: eedelman
Date: Mon Jan 30 22:23:57 2006
New Revision: 110412

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110412
Log:
fortran/
2005-01-30  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/24266
        * trans-io.c (set_internal_unit): Check the rank of the
        expression node itself instead of its symbol.


testsuite/
2005-01-30  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/24266
        * gfortran.dg/arrayio_derived_2.f90: New.



Added:
    trunk/gcc/testsuite/gfortran.dg/arrayio_derived_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-io.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/24266] ICE when writing to array of strings that is an elements of a user defined type
  2005-10-07 21:28 [Bug fortran/24266] New: ICE when writing to array of strings that is an elements of a user defined type yosef at phys dot utb dot edu
                   ` (4 preceding siblings ...)
  2006-01-30 22:24 ` eedelman at gcc dot gnu dot org
@ 2006-01-31 20:45 ` eedelman at gcc dot gnu dot org
  2006-01-31 21:20 ` eedelman at gcc dot gnu dot org
  2006-01-31 22:04 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-31 20:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from eedelman at gcc dot gnu dot org  2006-01-31 20:45 -------
Subject: Bug 24266

Author: eedelman
Date: Tue Jan 31 20:45:40 2006
New Revision: 110447

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110447
Log:
fortran/
2005-01-31  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/24266
        * trans-io.c (set_internal_unit): Check the rank of the
        expression node itself instead of its symbol.


testsuite/
2005-01-31  Erik Edelmann  <eedelman@gcc.gnu.org>

        PR fortran/24266
        * gfortran.dg/arrayio_derived_2.f90: New.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/arrayio_derived_2.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/trans-io.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/24266] ICE when writing to array of strings that is an elements of a user defined type
  2005-10-07 21:28 [Bug fortran/24266] New: ICE when writing to array of strings that is an elements of a user defined type yosef at phys dot utb dot edu
                   ` (5 preceding siblings ...)
  2006-01-31 20:45 ` eedelman at gcc dot gnu dot org
@ 2006-01-31 21:20 ` eedelman at gcc dot gnu dot org
  2006-01-31 22:04 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2006-01-31 21:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from eedelman at gcc dot gnu dot org  2006-01-31 21:19 -------
Fixed on mainline and 4.1


-- 

eedelman at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/24266] ICE when writing to array of strings that is an elements of a user defined type
  2005-10-07 21:28 [Bug fortran/24266] New: ICE when writing to array of strings that is an elements of a user defined type yosef at phys dot utb dot edu
                   ` (6 preceding siblings ...)
  2006-01-31 21:20 ` eedelman at gcc dot gnu dot org
@ 2006-01-31 22:04 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-31 22:04 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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


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

end of thread, other threads:[~2006-01-31 22:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-07 21:28 [Bug fortran/24266] New: ICE when writing to array of strings that is an elements of a user defined type yosef at phys dot utb dot edu
2005-10-07 21:36 ` [Bug fortran/24266] " yosef at phys dot utb dot edu
2005-10-07 22:40 ` pinskia at gcc dot gnu dot org
2006-01-01  6:53 ` pinskia at gcc dot gnu dot org
2006-01-30 18:56 ` eedelman at gcc dot gnu dot org
2006-01-30 22:24 ` eedelman at gcc dot gnu dot org
2006-01-31 20:45 ` eedelman at gcc dot gnu dot org
2006-01-31 21:20 ` eedelman at gcc dot gnu dot org
2006-01-31 22:04 ` 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).