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/22048] Problem with sub-string operator and implicitly typed character variables


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


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