This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/22048] Problem with sub-string operator and implicitly typed character variables
- 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: 13 Jun 2005 16:53:25 -0000
- Subject: [Bug fortran/22048] Problem with sub-string operator and implicitly typed character variables
- References: <20050613143414.22048.h.j.j.vandam@dl.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-06-13 16:53 -------
Confirmed on sparc-solaris. Further reduced testcase:
$ cat pr22048.f
implicit character*8 (z)
z = ''
print *, z(1:3)
end
$ gfortran pr22048.f
In file pr22048.f:3
print *, z(1:3)
1
Error: Syntax error in PRINT statement at (1)
This error go away if z is explicitly typed, or the line "z = ''" is removed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|gcc version 4.1.0 20050611 |
|(experimental) |
GCC host triplet|i386-linux |
GCC target triplet|i386-linux |
Last reconfirmed|0000-00-00 00:00:00 |2005-06-13 16:53:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22048