public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39624] New: short-list explicit interfaces in generic interfaces if no match is found
@ 2009-04-03 11:27 dfranke at gcc dot gnu dot org
2009-05-13 8:56 ` [Bug fortran/39624] " fxcoudert at gcc dot gnu dot org
2009-06-20 17:47 ` jv244 at cam dot ac dot uk
0 siblings, 2 replies; 3+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2009-04-03 11:27 UTC (permalink / raw)
To: gcc-bugs
It would be nice if we could provide a list of possible candidates for generic
in the example below. (Something similar is implemented in C++ if a particular
overload is not found, all possible prototypes are listed.)
$> cat candidates.f90
MODULE amodule
INTERFACE generic
MODULE PROCEDURE specific_1
MODULE PROCEDURE specific_2
END INTERFACE
CONTAINS
SUBROUTINE specific_1(i)
INTEGER, INTENT(in) :: i
END SUBROUTINE
SUBROUTINE specific_2(r)
REAL, INTENT(in) :: r
END SUBROUTINE
END MODULE
USE amodule
CALL generic("string")
END
$> gfortran-svn candidates.f90
candidates.f90:18.24:
CALL generic("string")
1
Error: There is no specific subroutine for the generic 'generic' at (1)
[Candidates are:
subroutine generic(integer)
subroutine generic(real)]
--
Summary: short-list explicit interfaces in generic interfaces if
no match is found
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dfranke at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39624
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/39624] short-list explicit interfaces in generic interfaces if no match is found
2009-04-03 11:27 [Bug fortran/39624] New: short-list explicit interfaces in generic interfaces if no match is found dfranke at gcc dot gnu dot org
@ 2009-05-13 8:56 ` fxcoudert at gcc dot gnu dot org
2009-06-20 17:47 ` jv244 at cam dot ac dot uk
1 sibling, 0 replies; 3+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-05-13 8:56 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 |2009-05-13 08:56:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39624
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/39624] short-list explicit interfaces in generic interfaces if no match is found
2009-04-03 11:27 [Bug fortran/39624] New: short-list explicit interfaces in generic interfaces if no match is found dfranke at gcc dot gnu dot org
2009-05-13 8:56 ` [Bug fortran/39624] " fxcoudert at gcc dot gnu dot org
@ 2009-06-20 17:47 ` jv244 at cam dot ac dot uk
1 sibling, 0 replies; 3+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-06-20 17:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jv244 at cam dot ac dot uk 2009-06-20 17:47 -------
that would be nice indeed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39624
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-20 17:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-03 11:27 [Bug fortran/39624] New: short-list explicit interfaces in generic interfaces if no match is found dfranke at gcc dot gnu dot org
2009-05-13 8:56 ` [Bug fortran/39624] " fxcoudert at gcc dot gnu dot org
2009-06-20 17:47 ` jv244 at cam dot ac dot uk
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).