public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/19928] New: Reference of constant derived type component causes failure
@ 2005-02-12 21:12 sgk at troutmask dot apl dot washington dot edu
2005-02-12 21:57 ` [Bug fortran/19928] " pinskia at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2005-02-12 21:12 UTC (permalink / raw)
To: gcc-bugs
>From Richard Maine, editor of the F2003 standard
subroutine open_th_read_unc2
type my_type
character :: signal_names(10)*16
end type
type(my_type) :: gen
gen%signal_names = ''
write (*,*) gen%signal_names(:)(1:4)
end subroutine open_th_read_unc2
bug4.f90: In function 'open_th_read_unc2':
bug4.f90:7: internal compiler error: in gfc_conv_constant, at
fortran/trans-const.c:344
--
Summary: Reference of constant derived type component causes
failure
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sgk at troutmask dot apl dot washington dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/19928] Reference of constant derived type component causes failure
2005-02-12 21:12 [Bug fortran/19928] New: Reference of constant derived type component causes failure sgk at troutmask dot apl dot washington dot edu
@ 2005-02-12 21:57 ` pinskia at gcc dot gnu dot org
2005-02-13 20:57 ` Thomas dot Koenig at online dot de
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-12 21:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-12 16:59 -------
Confirmed, related to PR 17123.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2005-02-12 16:59:28
date| |
Summary|Reference of constant |Reference of constant
|derived type component |derived type component
|causes failure |causes failure
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/19928] Reference of constant derived type component causes failure
2005-02-12 21:12 [Bug fortran/19928] New: Reference of constant derived type component causes failure sgk at troutmask dot apl dot washington dot edu
2005-02-12 21:57 ` [Bug fortran/19928] " pinskia at gcc dot gnu dot org
@ 2005-02-13 20:57 ` Thomas dot Koenig at online dot de
2005-02-14 0:18 ` Thomas dot Koenig at online dot de
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-02-13 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Thomas dot Koenig at online dot de 2005-02-13 14:24 -------
No derived type is necessary:
$ cat pr19928.f90
subroutine pr19928
character :: signal_names(10)*16
signal_names = ''
write (*,*) signal_names(:)(1:4)
end subroutine pr19928
$ gfortran pr19928.f90
pr19928.f90: In function 'pr19928':
pr19928.f90:4: internal compiler error: in gfc_conv_constant, at
fortran/trans-const.c:344
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/ig25 --enable-languages=c,f95
Thread model: posix
gcc version 4.0.0 20050212 (experimental)
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |19276
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/19928] Reference of constant derived type component causes failure
2005-02-12 21:12 [Bug fortran/19928] New: Reference of constant derived type component causes failure sgk at troutmask dot apl dot washington dot edu
2005-02-12 21:57 ` [Bug fortran/19928] " pinskia at gcc dot gnu dot org
2005-02-13 20:57 ` Thomas dot Koenig at online dot de
@ 2005-02-14 0:18 ` Thomas dot Koenig at online dot de
2005-08-26 11:32 ` rsandifo at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-02-14 0:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Thomas dot Koenig at online dot de 2005-02-13 17:50 -------
Looking at PR 17123 a bit more closely, I think that
this is a duplicate.
Thomas
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/19928] Reference of constant derived type component causes failure
2005-02-12 21:12 [Bug fortran/19928] New: Reference of constant derived type component causes failure sgk at troutmask dot apl dot washington dot edu
` (2 preceding siblings ...)
2005-02-14 0:18 ` Thomas dot Koenig at online dot de
@ 2005-08-26 11:32 ` rsandifo at gcc dot gnu dot org
2005-09-08 16:07 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-08-26 11:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rsandifo at gcc dot gnu dot org 2005-08-26 10:48 -------
Have a possible patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rsandifo at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-06-06 00:36:57 |2005-08-26 10:48:56
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/19928] Reference of constant derived type component causes failure
2005-02-12 21:12 [Bug fortran/19928] New: Reference of constant derived type component causes failure sgk at troutmask dot apl dot washington dot edu
` (3 preceding siblings ...)
2005-08-26 11:32 ` rsandifo at gcc dot gnu dot org
@ 2005-09-08 16:07 ` cvs-commit at gcc dot gnu dot org
2005-09-08 16:11 ` rsandifo at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-08 16:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-08 16:07 -------
Subject: Bug 19928
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rsandifo@gcc.gnu.org 2005-09-08 16:06:55
Modified files:
gcc/fortran : ChangeLog trans-array.c trans-expr.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: pr19928-1.f90 pr19928-2.f90
Log message:
PR fortran/19928
* trans-array.c (gfc_conv_array_ref): Call gfc_advance_se_ss_chain
after handling scalarized references. Make "indexse" inherit from
"se" when handling AR_ELEMENTs.
(gfc_walk_variable_expr): Add GFC_SS_SCALAR entries for each
substring or scalar reference that follows an array section.
* trans-expr.c (gfc_conv_variable): When called from within a
scalarization loop, start out with "ref" pointing to the scalarized
part of the reference. Don't call gfc_advance_se_ss_chain here.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.539&r2=1.540
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&r1=1.55&r2=1.56
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&r1=1.58&r2=1.59
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6029&r2=1.6030
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr19928-1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr19928-2.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/19928] Reference of constant derived type component causes failure
2005-02-12 21:12 [Bug fortran/19928] New: Reference of constant derived type component causes failure sgk at troutmask dot apl dot washington dot edu
` (4 preceding siblings ...)
2005-09-08 16:07 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-08 16:11 ` rsandifo at gcc dot gnu dot org
2005-09-08 21:39 ` pinskia at gcc dot gnu dot org
2005-09-13 20:12 ` reichelt at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-08 16:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rsandifo at gcc dot gnu dot org 2005-09-08 16:09 -------
Patch applied to trunk.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/19928] Reference of constant derived type component causes failure
2005-02-12 21:12 [Bug fortran/19928] New: Reference of constant derived type component causes failure sgk at troutmask dot apl dot washington dot edu
` (5 preceding siblings ...)
2005-09-08 16:11 ` rsandifo at gcc dot gnu dot org
@ 2005-09-08 21:39 ` pinskia at gcc dot gnu dot org
2005-09-13 20:12 ` reichelt at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-08 21:39 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19928
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/19928] Reference of constant derived type component causes failure
2005-02-12 21:12 [Bug fortran/19928] New: Reference of constant derived type component causes failure sgk at troutmask dot apl dot washington dot edu
` (6 preceding siblings ...)
2005-09-08 21:39 ` pinskia at gcc dot gnu dot org
@ 2005-09-13 20:12 ` reichelt at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-09-13 20:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-09-13 20:11 -------
*** Bug 17123 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |refson dot temp at ntlworld
| |dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19928
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-09-13 20:12 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-12 21:12 [Bug fortran/19928] New: Reference of constant derived type component causes failure sgk at troutmask dot apl dot washington dot edu
2005-02-12 21:57 ` [Bug fortran/19928] " pinskia at gcc dot gnu dot org
2005-02-13 20:57 ` Thomas dot Koenig at online dot de
2005-02-14 0:18 ` Thomas dot Koenig at online dot de
2005-08-26 11:32 ` rsandifo at gcc dot gnu dot org
2005-09-08 16:07 ` cvs-commit at gcc dot gnu dot org
2005-09-08 16:11 ` rsandifo at gcc dot gnu dot org
2005-09-08 21:39 ` pinskia at gcc dot gnu dot org
2005-09-13 20:12 ` reichelt 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).