This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi,
attached is my proposed solution for PR 30239. For code as this:
INTEGER FUNCTION foo () INTEGER :: foo foo = 42 END FUNCTION foo
One currently gets an error with -pedantic and/or -std=f95, but with -std=gnu gfortran accepts it silently (this is what the PR is about).
With my patch, -Wsurprising warns about a situation like this if no error is issued because of -pedantic or standards-conforming mode, this is what I'd see as the best solution.
What do you think about this? Is this behaviour and the patch ok?
Cheers, Daniel
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |