This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
RFC: PR 22552 and PR 39171
- From: Daniel Kraft <d at domob dot eu>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Date: Mon, 10 Aug 2009 13:07:55 +0200
- Subject: RFC: PR 22552 and PR 39171
Hi all,
PR 22552 and PR 39171 are two reports I just stumbled upon again, and I
think we could try to find a result... Comments welcome!
PR 22552:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22552
This is about adding a warning (presumably -Wimplicit-procedure) when a
"undeclared" procedure is called. Similar to -Wimplicit-interface, but
this warning would also be content with an EXTERNAL declaration or
defining the type for a function, even if no interface is explicitly
given. FX provided a patch and I did develop it further to a state
where it can, if you think this warning reasonable, checked-in directly.
What do you think, should we do this? Otherwise I'll mark the PR as
WONTFIX.
PR 39171:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39171
When something like CHARACTER(LEN=-1) (negative charlength) is declared,
there's currently a warning which is quite misleading, though (as it
states the character length is zero; for actual zero length however, no
warning is issued at all). From a standard's point of view, a negative
charlength is fine and will be treated like LEN=0; but I think a warning
is a good idea in this case; and we should in any case fix the old
misleading warning. Do you think we should warn always or only with
some -W... flag? I'm willing to work out a patch for this if we get an
agreement on what exactly to do here.
Thanks!
Daniel
--
Done: Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri