On Sun, Jan 28, 2018 at 05:00:21PM +0100, Thomas Koenig wrote: > Hello world, > > At the moment, gfortran silently accepts > > type, bind(c) :: a > character(len=2,kind=c_char) :: b > end type a > > translating this into I don't know what. With the -fc-prototypes > option, we now get > > typedef struct a { > char b; > } a; > > which is clearly bogus. Any user code which has the broken code above > will then likely crash and burn when using a gfortran-generated > prototype. > > The attached patch solves that particular problem by issuing errors > in this case. OK for trunk? >
yes. -- steve