I've been able to reproduce this on a small example with 8.0.1 and have 
submitted a bug report.This fails to compile with 8.0.1 but does compile with 
pre 8.0 compilersIt only shows the error when the character declaration is 
inside a type block.

subroutine foo(i,c)
  use, intrinsic :: iso_c_binding, only: c_char
        integer i
        type, bind(C) :: params_block
            character(kind=c_char,len=10) :: c
        end type params_block
        write(*,*) 'X',c,'Z'
end

de Mike W9MDB

    On Thursday, March 15, 2018, 6:09:27 AM CDT, Jaroslav Skarvada 
<jskar...@redhat.com> wrote:  
 
 Hi,

with gfortran 8.0.1 the compilation of wsjtx fails with the following error:

make[2]: Leaving directory '/builddir/build/BUILD/wsjtx-1.9.0-rc2/wsjtx/build'
jt9com.f90:44:47:

Error: Component 'datetime' of BIND(C) type at (1) must have length one
jt9com.f90:45:45:

Error: Component 'mycall' of BIND(C) type at (1) must have length one
jt9com.f90:46:44:

Error: Component 'mygrid' of BIND(C) type at (1) must have length one
jt9com.f90:47:46:

Error: Component 'hiscall' of BIND(C) type at (1) must have length one
jt9com.f90:48:45:

Error: Component 'hisgrid' of BIND(C) type at (1) must have length one

I tried various combination of -std=, but it didnt' help

thanks & regards

Jaroslav

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel
  
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to