This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Fortran, patch] Fix for PR fortran/26054: Gratuitous warning about Fortran 2003 features.
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: fxcoudert at gmail dot com, toon at moene dot indiv dot nluug dot nl
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, moene at knmi dot nl
- Date: Sat, 11 Feb 2006 15:28:52 +0100
- Subject: Re: [Fortran, patch] Fix for PR fortran/26054: Gratuitous warning about Fortran 2003 features.
FX wrote:
> >While I agree with you that no warning should be issued by default
> >about F2003 constructs, I think checking for the warning in the
> >testcases is indeed a good thing. Perhaps, instead of removing the
> >dg-warning directive in all the concerned testcases like you propose,
> >we could add a { dg-option "-std=f95" } directive in each of them?
> I'm not really familiar with the testing harness - I'm going to try
> this and report back.
Unfortunately, this doesn't work. With -std=f95, the Fortran 2003
features are errors, as they should be. Because you can't "lower"
-std=f95 to only warn about the new things, this means we have
to remove the warning checks from the test suite.
Cheers,
--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
A maintainer of GNU Fortran 95: http://gcc.gnu.org/fortran/
My next PC will have a crank