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; 5+ 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] 5+ messages in thread
* [Bug fortran/31124] Warn of unused PRIVATE module variables/procedures
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 ` terry at chem dot gu dot se
2007-03-18 18:10 ` fxcoudert at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: terry at chem dot gu dot se @ 2007-03-11 1:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from terry at chem dot gu dot se 2007-03-11 01:57 -------
I've filed #31129 specifically for the parameter case. This is unrelated to
the private attribute.
--
terry at chem dot gu dot se changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |terry at chem dot gu dot se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/31124] Warn of unused PRIVATE module variables/procedures
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
3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-03-18 18:10 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-03-18 18:10:44
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/31124] Warn of unused PRIVATE module variables/procedures
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
3 siblings, 0 replies; 5+ messages in thread
From: terry at chem dot gu dot se @ 2007-11-15 10:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from terry at chem dot gu dot se 2007-11-15 10:19 -------
*** Bug 34092 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/31124] Warn of unused PRIVATE module variables/procedures
2007-03-10 19:34 [Bug fortran/31124] New: Warn of unused PRIVATE module variables/procedures burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-11-15 10:19 ` terry at chem dot gu dot se
@ 2007-11-15 10:28 ` terry at chem dot gu dot se
3 siblings, 0 replies; 5+ messages in thread
From: terry at chem dot gu dot se @ 2007-11-15 10:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from terry at chem dot gu dot se 2007-11-15 10:27 -------
(In reply to comment #2)
> *** Bug 34092 has been marked as a duplicate of this bug. ***
>
So, to summarise: Unused parameters have been fixed in general, but unused
private module entities remain undetected (as of 4.3.0 20071109). (There must
surely be a piece of code excluding module variables from unused warnings?
That needs to be taught about the private attribute.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-15 10:28 UTC | newest]
Thread overview: 5+ 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
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).