public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44022] Spurious 'unused parameter' for a used procedure argument
       [not found] <bug-44022-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-06  1:11 ` john.harper at vuw dot ac.nz
  2012-02-19 20:03 ` tkoenig at gcc dot gnu.org
  1 sibling, 0 replies; 4+ messages in thread
From: john.harper at vuw dot ac.nz @ 2011-10-06  1:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44022

john.harper at vuw dot ac.nz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.harper at vuw dot
                   |                            |ac.nz

--- Comment #3 from john.harper at vuw dot ac.nz 2011-10-06 01:10:36 UTC ---
This gfortran bug happens if the offending subprogram is after CONTAINS in a
main program as well as in a module.

With gfortran -Wall -W this program showed the bug but did print 3.000000 

program test                                                                    
  implicit none                                                                 
  intrinsic sqrt                                                                
  print "(F10.6)",find(sqrt,9.0)                                                
contains                                                                        
  real function find(func,x) ! gfortran -Wall -W warns unused parameter func    
    real,external  ::func                                                       
    real,intent(in)::     x                                                     
    find = func(x)                                                              
  end function find                                                             
end program test                                   

I used two versions: gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) and 
gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC).
I would have installed version 4.6 if I could have.

-- John Harper


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/44022] Spurious 'unused parameter' for a used procedure argument
       [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
  1 sibling, 0 replies; 4+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2012-02-19 20:03 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44022

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |tkoenig at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-02-19 20:00:39 UTC ---
Fixed with the fix for PR 48847.  No separate test case
necessary. Closing.


^ 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

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

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