public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/22491] New: character array parameters do not reduce
@ 2005-07-14 17:08 dje at gcc dot gnu dot org
2005-07-14 17:13 ` [Bug fortran/22491] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-07-14 17:08 UTC (permalink / raw)
To: gcc-bugs
Work on PR 21730 uncovered that character array initializers do not reduce.
character*2 a (1)
character*4 b
character*6 c
parameter (a="12")
parameter (b = a(1))
write (c,'("#",A,"#")') b
if (c .ne. '#12 #') call abort
end
Or:
character*2 a (1)
character*4 b (1)
character*6 c
parameter (a="12")
parameter (b = a)
write (c,'("#",A,"#")') b
if (c .ne. '#12 #') call abort
end
expr.c:simplify_parameter_variable() and gfc_simplify_expr() do not eliminate
all subobject references, preventing the simplification from being used.
--
Summary: character array parameters do not reduce
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dje at gcc dot gnu dot org
CC: fengwang at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
dot org
GCC build triplet: *-*-*
GCC host triplet: *-*-*
GCC target triplet: *-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22491
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/22491] character array parameters do not reduce
2005-07-14 17:08 [Bug fortran/22491] New: character array parameters do not reduce dje at gcc dot gnu dot org
@ 2005-07-14 17:13 ` pinskia at gcc dot gnu dot org
2005-08-03 1:55 ` cvs-commit at gcc dot gnu dot org
2005-09-18 6:20 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14 17:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-14 17:08 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-07-14 17:08:45
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22491
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/22491] character array parameters do not reduce
2005-07-14 17:08 [Bug fortran/22491] New: character array parameters do not reduce dje at gcc dot gnu dot org
2005-07-14 17:13 ` [Bug fortran/22491] " pinskia at gcc dot gnu dot org
@ 2005-08-03 1:55 ` cvs-commit at gcc dot gnu dot org
2005-09-18 6:20 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-03 1:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-03 01:55 -------
Subject: Bug 22491
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: dje@gcc.gnu.org 2005-08-03 01:55:38
Modified files:
gcc/fortran : ChangeLog expr.c
Log message:
PR fortran/22491
* expr.c (simplify_parameter_variable): Do not copy the subobject
references if the expression value is a constant.
* expr.c (gfc_simplify_expr): Evaluate constant substrings.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.509&r2=1.510
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/expr.c.diff?cvsroot=gcc&r1=1.27&r2=1.28
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22491
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/22491] character array parameters do not reduce
2005-07-14 17:08 [Bug fortran/22491] New: character array parameters do not reduce dje at gcc dot gnu dot org
2005-07-14 17:13 ` [Bug fortran/22491] " pinskia at gcc dot gnu dot org
2005-08-03 1:55 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-18 6:20 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 6:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-18 06:20 -------
This is fixed, right?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22491
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-18 6:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14 17:08 [Bug fortran/22491] New: character array parameters do not reduce dje at gcc dot gnu dot org
2005-07-14 17:13 ` [Bug fortran/22491] " pinskia at gcc dot gnu dot org
2005-08-03 1:55 ` cvs-commit at gcc dot gnu dot org
2005-09-18 6:20 ` 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).