public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31124] New: Warn of unused PRIVATE module variables/procedures
@ 2007-03-10 19:34 burnus at gcc dot gnu dot org
2007-03-11 1:57 ` [Bug fortran/31124] " terry at chem dot gu dot se
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-03-10 19:34 UTC (permalink / raw)
To: gcc-bugs
As suggested at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/a19c9fdd1503e9c5/
While gfortran does not has this kind of warning, g95 -Wextra warns:
In file crud.f90:5
integer, parameter :: one = 1
1
Warning (159): PARAMETER 'one' at (1) is never used
In file crud.f90:11
subroutine bar()
1
Warning (167): PRIVATE module procedure 'bar' at (1) is never invoked
for the following file
module crud_mod
implicit none
private
public :: foo
integer, parameter :: one = 1
contains
subroutine foo()
print*,"foo"
end subroutine foo
!
subroutine bar()
print*,"bar"
end subroutine bar
end module crud_mod
--
Summary: Warn of unused PRIVATE module variables/procedures
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <bug-31124-4@http.gcc.gnu.org/bugzilla/>]
* [Bug fortran/31124] Warn of unused PRIVATE module variables/procedures
[not found] <bug-31124-4@http.gcc.gnu.org/bugzilla/>
@ 2014-01-13 19:53 ` dominiq at lps dot ens.fr
0 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-01-13 19:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to work| |4.8.2, 4.9.0
Resolution|--- |FIXED
Known to fail| |4.4.7, 4.5.5, 4.6.4, 4.7.3
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Compiling the test with gfortran 4.8 r190335 (2012-08-13) and -Wunused gives
the warning
pr31124.f90:11:0: warning: 'bar' defined but not used [-Wunused-function]
subroutine bar()
^
r190335 (2012-08-13) does not give any warning. This has been fixed likely by
r190325
Author: burnus
Date: Sun Aug 12 09:52:33 2012 UTC (17 months ago)
Changed paths: 5
Log Message:
2012-08-12 Tobias Burnus <burnus@net-b.de>
PR fortran/54221
* trans-decl.c (gfc_finish_var_decl, build_function_decl):
Fix setting private module vars/procs as TREE_PUBLIC(...) = 0.
2012-08-12 Tobias Burnus <burnus@net-b.de>
PR fortran/54221
* vect/vect-gems.f90: Don't mark module vars as PRIVATE as
they appear uninitialized on the RHS.
* gfortran.dg/public_private_module_6.f90: New.
Closing as FIXED.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-01-13 19:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-10 19:34 [Bug fortran/31124] New: Warn of unused PRIVATE module variables/procedures burnus at gcc dot gnu dot org
2007-03-11 1:57 ` [Bug fortran/31124] " terry at chem dot gu dot se
2007-03-18 18:10 ` fxcoudert at gcc dot gnu dot org
2007-11-15 10:19 ` terry at chem dot gu dot se
2007-11-15 10:28 ` terry at chem dot gu dot se
[not found] <bug-31124-4@http.gcc.gnu.org/bugzilla/>
2014-01-13 19:53 ` dominiq at lps dot ens.fr
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).