public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20067] New: gfortran: misleading error message resolving generic subroutine
@ 2005-02-19 13:01 anlauf at hep dot tu-darmstadt dot de
  2005-02-19 13:07 ` [Bug fortran/20067] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 7+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2005-02-19 13:01 UTC (permalink / raw)
  To: gcc-bugs

Hi,

the following (incorrect) code gives a misleading error message
when compiling:

program gfcbug24
implicit none

interface foo
   subroutine foo_8 (a, b)
     real (kind(1.d0)) :: a, b
   end subroutine foo_8
end interface

real (kind(1.d0)) :: c = 1.d0

! gfortran gives a misleading error message for the following line:
call foo (c, 2.0)
end


% gfortran gfcbug24.f90
 In file gfcbug24.f90:13

call foo (c, 2.0)
                1
Error: Generic subroutine 'foo' at (1) is not an intrinsic subroutine


This is misleading.  There simply is no specific subroutine
whose characteristics matches the (ranks and) types used in
the invocation.

E.g., the Intel compiler v8.1 says:

fortcom: Error: gfcbug24.f90, line 13: There is no matching specific subroutine
for this generic subroutine call.   [FOO]
call foo (c, 2.0)
-----^
compilation aborted for gfcbug24.f90 (code 1)

Cheers,
-ha

-- 
           Summary: gfortran: misleading error message resolving generic
                    subroutine
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at hep dot tu-darmstadt dot de
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-20067-6318@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-08-30  5:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-19 13:01 [Bug fortran/20067] New: gfortran: misleading error message resolving generic subroutine anlauf at hep dot tu-darmstadt dot de
2005-02-19 13:07 ` [Bug fortran/20067] " pinskia at gcc dot gnu dot org
     [not found] <bug-20067-6318@http.gcc.gnu.org/bugzilla/>
2006-08-29  7:55 ` paul dot richard dot thomas at cea dot fr
2006-08-29 14:46 ` anlauf at gmx dot de
2006-08-30  5:20 ` pault at gcc dot gnu dot org
2006-08-30  5:20 ` pault at gcc dot gnu dot org
2006-08-30  5:31 ` pault 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).