This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30668] -fwhole-file should catch function of wrong type
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2009 13:53:02 -0000
- Subject: [Bug fortran/30668] -fwhole-file should catch function of wrong type
- References: <bug-30668-9647@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2009-05-03 13:53 -------
I guess -fwhole-file should catch this one, but it does not. The testcase I
used is:
integer function two()
two = 2
end function two
program xx
! real, external :: two
print *, two(), kind(two())
end program xx
You can comment or uncomment the line with "external", both versions should be
caught.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pault at gcc dot gnu dot org
Severity|enhancement |minor
Last reconfirmed|2007-03-18 17:53:03 |2009-05-03 13:53:02
date| |
Summary|catch function of wrong type|-fwhole-file should catch
| |function of wrong type
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30668