public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44022] New: Spurious 'unused parameter' for a used procedure argument
@ 2010-05-07 11:14 mathewc at nag dot co dot uk
2010-05-07 13:09 ` [Bug fortran/44022] " burnus at gcc dot gnu dot org
2010-07-16 17:51 ` domob at gcc dot gnu dot org
0 siblings, 2 replies; 4+ messages in thread
From: mathewc at nag dot co dot uk @ 2010-05-07 11:14 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 966 bytes --]
> gfortran --version
GNU Fortran (GCC) 4.5.0 20100128 (experimental)
> uname -a
Linux loanamd25 2.6.16.46-0.10-smp #1 SMP Mon May 7 13:37:05 UTC 2007 x86_64
x86_64 x86_64 GNU/Linux
> cat used_dummy.f90
FUNCTION DGEES_SELECTH(SELECT)
LOGICAL :: DGEES_SELECTH
LOGICAL, EXTERNAL :: SELECT
DGEES_SELECTH = SELECT()
END FUNCTION DGEES_SELECTH
> gfortran -Wunused-parameter -c used_dummy.f90
used_dummy.f90:1:0: warning: unused parameter select
Does PR40039 already fix this?
--
Summary: Spurious 'unused parameter' for a used procedure
argument
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mathewc at nag dot co dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44022
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/44022] Spurious 'unused parameter' for a used procedure argument
2010-05-07 11:14 [Bug fortran/44022] New: " mathewc at nag dot co dot uk
@ 2010-05-07 13:09 ` burnus at gcc dot gnu dot org
2010-07-16 17:51 ` domob at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-05-07 13:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2010-05-07 13:08 -------
Manuel: As this is a middle-end warning, do you have an idea?
dgees_selecth (logical(kind=4) (*<T410>) (void) select)
{
logical(kind=4) __result_dgees_selecth.0;
logical(kind=4) D.1538;
logical(kind=4) __result_dgees_selecth;
__result_dgees_selecth.0 = select ();
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org,
| |burnus at gcc dot gnu dot
| |org
Keywords| |diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44022
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/44022] Spurious 'unused parameter' for a used procedure argument
2010-05-07 11:14 [Bug fortran/44022] New: " mathewc at nag dot co dot uk
2010-05-07 13:09 ` [Bug fortran/44022] " burnus at gcc dot gnu dot org
@ 2010-07-16 17:51 ` domob at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: domob at gcc dot gnu dot org @ 2010-07-16 17:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from domob at gcc dot gnu dot org 2010-07-16 17:50 -------
I just hit it, too:
subroutine foo (x)
procedure(intf) :: x
abstract interface
integer function intf ()
end function intf
end interface
print *, x()
end subroutine foo
--
domob 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 |2010-07-16 17:50:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44022
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-19 20:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-44022-4@http.gcc.gnu.org/bugzilla/>
2011-10-06 1:11 ` [Bug fortran/44022] Spurious 'unused parameter' for a used procedure argument john.harper at vuw dot ac.nz
2012-02-19 20:03 ` tkoenig at gcc dot gnu.org
2010-05-07 11:14 [Bug fortran/44022] New: " mathewc at nag dot co dot uk
2010-05-07 13:09 ` [Bug fortran/44022] " burnus at gcc dot gnu dot org
2010-07-16 17:51 ` domob at gcc dot gnu dot 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).