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