[Patch, Fortran] PR64522 - reinstate truncation diagnostic
Thomas Koenig
tkoenig@netcologne.de
Thu Jan 8 18:20:00 GMT 2015
Am 08.01.2015 um 16:10 schrieb Tobias Burnus:
> For free-form source code, that's very uncommon - especially as several
> compilers do not honour the line limit of 132 characters (with default
> settings).
> Until and including GCC 4.4, gfortran was warning (unconditionally) when
> free-form lines exceeded the line limit and got truncated. When some
> additional diagnostic was introduced (PR39229, r151258, 2009-08-31), this
> feature got lost. (Found by Andre - thanks!)
> I think think it makes sense to have some diagnostic in this case. Either
> by re-instating the warning or even by printing an error.
I concur that we should warn about this, but I think that
> This patch does the latter by using the warning infrastructure.
is not correct. We should not emit an error by default for valid, if
unusual, Fortran code.
My suggestion would be to turn this into a warning, which can be
suppressed if necessary.
Regards
Thomas
More information about the Fortran
mailing list