public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/37076] New: Concatenation of KIND=4 strings with KIND=4 parameters fails
@ 2008-08-11 4:32 jvdelisle at gcc dot gnu dot org
2008-08-23 18:52 ` [Bug fortran/37076] " burnus at gcc dot gnu dot org
2008-08-23 18:52 ` burnus at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-08-11 4:32 UTC (permalink / raw)
To: gcc-bugs
This program illustrates the problem. I think this is a rejects valid. At the
point of failure in resolve.c, one of the operands has kind=1 for some reason.
program test3
integer,parameter :: u = 4
character(1,u),parameter :: nen=char(int(z'5e74'),u) !year
character(25,u) :: string
string = u_"2008"//nen
print *, u_"2008"//nen ! Compiles OK
print *, u_"2008"//nen//u_"8" ! Rejects this.
end program test3
$ gfc concat.f90
concat.f90:7.10:
print *, u_"2008"//nen//u_"8" ! Rejects this.
1
Error: Operands of string concatenation operator at (1) are
CHARACTER(1)/CHARACTER(4)
--
Summary: Concatenation of KIND=4 strings with KIND=4 parameters
fails
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jvdelisle at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37076
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/37076] Concatenation of KIND=4 strings with KIND=4 parameters fails
2008-08-11 4:32 [Bug fortran/37076] New: Concatenation of KIND=4 strings with KIND=4 parameters fails jvdelisle at gcc dot gnu dot org
@ 2008-08-23 18:52 ` burnus at gcc dot gnu dot org
2008-08-23 18:52 ` burnus at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-08-23 18:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from burnus at gcc dot gnu dot org 2008-08-23 18:51 -------
Subject: Bug 37076
Author: burnus
Date: Sat Aug 23 18:49:43 2008
New Revision: 139521
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139521
Log:
2008-08-23 Tobias Burnus <burnus@net-b.de>
PR fortran/37076
* arith.c (gfc_arith_concat): Fix concat of kind=4 strings.
2008-08-23 Tobias Burnus <burnus@net-b.de>
PR fortran/37076
* gfortran.dg/widechar_9.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/widechar_9.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/arith.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37076
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/37076] Concatenation of KIND=4 strings with KIND=4 parameters fails
2008-08-11 4:32 [Bug fortran/37076] New: Concatenation of KIND=4 strings with KIND=4 parameters fails jvdelisle at gcc dot gnu dot org
2008-08-23 18:52 ` [Bug fortran/37076] " burnus at gcc dot gnu dot org
@ 2008-08-23 18:52 ` burnus at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-08-23 18:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2008-08-23 18:51 -------
FIXED on the trunk (4.4).
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37076
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-23 18:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-11 4:32 [Bug fortran/37076] New: Concatenation of KIND=4 strings with KIND=4 parameters fails jvdelisle at gcc dot gnu dot org
2008-08-23 18:52 ` [Bug fortran/37076] " burnus at gcc dot gnu dot org
2008-08-23 18:52 ` burnus 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).