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
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).