------- Comment #3 from kargl at gcc dot gnu dot org  2008-11-03 18:41 -------
(In reply to comment #2)
> With the new  version, I will check the second problem I reported
> as well and report back  (kind intrinsic with character argument
> in a type declararation statement)

The 2nd problem is also fixed in 4.3.2 and newer gfortran. 

   character (len = 3, kind = kind("a" )  c
   c = "b"
   print *, kind("a"), c
   end program

troutmask:kargl[203] ~/../sgk/work/4x/bin/gfortran -static -o z t.f90
t.f90:1.42:

   character (len = 3, kind = kind("a" )  c
                                         1
Error: Syntax error in CHARACTER declaration at (1)
t.f90:2.7:

   c = "b"
      1
Error: Can't convert CHARACTER(1) to REAL(4) at (1)

The second error is a side effect of the first error.


-- 


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

Reply via email to