*Ping* [PR fortran/88299, patch] - [F18] COMMON in a legacy module produces bogus warnings in dependent code

Harald Anlauf anlauf@gmx.de
Sun Feb 17 19:41:00 GMT 2019


Ping!

On 02/11/19 23:09, Harald Anlauf wrote:
> The attached patch moves the check for this F2018 obsolescent feature
> to a better place where the warning is only emitted when the COMMON is
> declared.  No warning should be emitted when such a legacy module is
> simply used.
> 
> Regtested on x86_64-pc-linux-gnu.
> 
> OK for trunk?
> 
> Thanks,
> Harald
> 
> 2019-02-11  Harald Anlauf  <anlauf@gmx.de>
> 
> 	PR fortran/88299
> 	* resolve.c (resolve_common_blocks,resolve_common_vars): Move
> 	check for obsolent COMMON feature in F2018 to better place.
> 
> 2019-02-11  Harald Anlauf  <anlauf@gmx.de>
> 
> 	PR fortran/88299
> 	* gfortran.dg/pr88299.f90: New test.
> 

Regards,
Harald



More information about the Fortran mailing list