[Bug fortran/23635] Argument of ichar at (1) must be of length one

2005-10-20 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2005-10-20 17:33 ---
I have a fix which I am testing.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23635



[Bug fortran/23635] Argument of ichar at (1) must be of length one

2005-08-30 Thread fxcoudert at gcc dot gnu dot org

--- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-08-30 
15:23 ---
Confirmed. Reduced testcase:

  type glcptr
character(len=2) :: addr
  end type glcptr

  type(glcptr) :: ptr
  print *, ichar(ptr%addr(1:1))
  end

The type declaration is needed to exhibit the bug, and the fact that addr is not
of length 1 is needed: it looks like the check for the argument of ichar is not
done on ptr%addr(1:1) but on ptr%addr (which is not of length 1).

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-08-30 15:23:30
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23635