This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23635] Argument of ichar at (1) must be of length one
- 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: 30 Aug 2005 15:23:33 -0000
- Subject: [Bug fortran/23635] Argument of ichar at (1) must be of length one
- References: <20050830133309.23635.william.mitchell@nist.gov>
- Reply-to: gcc-bugzilla 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|0000-00-00 00:00:00 |2005-08-30 15:23:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23635