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/23635] Argument of ichar at (1) must be of length one


------- 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|0000-00-00 00:00:00         |2005-08-30 15:23:30
               date|                            |


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


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