This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/30668] -fwhole-file should catch function of wrong type



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]