This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/31608] wrong types in character array/scalar binop



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]