This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31608] wrong types in character array/scalar binop
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2007 21:59:46 -0000
- Subject: [Bug fortran/31608] wrong types in character array/scalar binop
- References: <bug-31608-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #22 from fxcoudert at gcc dot gnu dot org 2007-10-05 21:59 -------
Created an attachment (id=14307)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14307&action=view)
Patch for 4 testcases of this PR
The following three cases are fixed by the patch attached (fix resolution of
CHAR by factoring code with ACHAR, and prevent too agressive simplification of
TRANSFER; I also factored the code for simplification of CHAR and ACHAR, even
though it's not required to fix the bug):
integer i(1)
print *, transfer(achar(i), "x")
end
-------------------------------
integer i(1)
print *, transfer(char(i), "x")
end
-------------------------------
print *, transfer(achar([0]), 0_1)
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31608