public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45654] New: -fwhole-file doesn't warn about INTERFACE vs. definition mismatches
@ 2010-09-13 12:15 jakub at gcc dot gnu dot org
2010-09-22 5:31 ` [Bug fortran/45654] " pault at gcc dot gnu dot org
0 siblings, 1 reply; 3+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-09-13 12:15 UTC (permalink / raw)
To: gcc-bugs
Sorry if this is a dup.
Is there any reason why with -fwhole-file we don't warn about:
subroutine foo(ptr, ptr2, f)
integer, pointer :: ptr(:), ptr2(:)
logical :: f
if (f) then
allocate (ptr(6))
else
nullify(ptr)
end if
end subroutine
subroutine bar()
real, pointer :: ptr(:), ptr2(:)
real, target :: a(6)
interface
subroutine foo(ptr, ptr2, f)
real, pointer :: ptr(:), ptr2(:)
logical :: f
end subroutine
end interface
ptr2 = a
call foo(ptr, ptr2, .true.)
ptr = a + 6
end subroutine
?
--
Summary: -fwhole-file doesn't warn about INTERFACE vs. definition
mismatches
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45654
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <bug-45654-4@http.gcc.gnu.org/bugzilla/>]
end of thread, other threads:[~2010-12-28 18:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-13 12:15 [Bug fortran/45654] New: -fwhole-file doesn't warn about INTERFACE vs. definition mismatches jakub at gcc dot gnu dot org
2010-09-22 5:31 ` [Bug fortran/45654] " pault at gcc dot gnu dot org
[not found] <bug-45654-4@http.gcc.gnu.org/bugzilla/>
2010-12-28 18:24 ` dfranke at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).