public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31564]  New: Error: Type/rank mismatch in argument
@ 2007-04-13 17:48 michael dot a dot richmond at nasa dot gov
  2007-04-13 18:05 ` [Bug fortran/31564] " kargl at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-04-13 17:48 UTC (permalink / raw)
  To: gcc-bugs

When I compile the module listed below I get the message:

c3.f90:15.23:
        USE cdf_aux_mod
                      1
Error: Type/rank mismatch in argument 'arg_name' at (1)

g95 and Lahey do not produce error messages. Is it legal?

    MODULE cdf_aux_mod
      TYPE :: the_distribution
        INTEGER :: parameters(1)
      END TYPE the_distribution
      TYPE (the_distribution), PARAMETER :: the_beta = the_distribution((/0/))
    CONTAINS
      SUBROUTINE set_bound(arg_name)
        INTEGER, INTENT (IN) :: arg_name
      END SUBROUTINE set_bound
    END MODULE cdf_aux_mod
    MODULE cdf_beta_mod
    CONTAINS
      SUBROUTINE cdf_beta()
        USE cdf_aux_mod
        INTEGER :: which
          CALL set_bound(the_beta%parameters(which))
      END SUBROUTINE cdf_beta
    END MODULE cdf_beta_mod


-- 
           Summary: Error: Type/rank mismatch in argument
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


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


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

end of thread, other threads:[~2007-09-06 11:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-13 17:48 [Bug fortran/31564] New: Error: Type/rank mismatch in argument michael dot a dot richmond at nasa dot gov
2007-04-13 18:05 ` [Bug fortran/31564] " kargl at gcc dot gnu dot org
2007-04-13 18:40 ` burnus at gcc dot gnu dot org
2007-04-22 17:49 ` eedelman at gcc dot gnu dot org
2007-05-27 23:40 ` burnus at gcc dot gnu dot org
2007-05-28 15:41 ` eedelman at gcc dot gnu dot org
2007-05-28 18:51 ` eedelman at gcc dot gnu dot org
2007-06-03 19:28 ` eedelman at gcc dot gnu dot org
2007-08-18  6:04 ` pault at gcc dot gnu dot org
2007-09-04 18:16 ` pault at gcc dot gnu dot org
2007-09-05 13:35 ` pault at gcc dot gnu dot org
2007-09-05 13:38 ` pault at gcc dot gnu dot org
2007-09-06 11:56 ` patchapp at dberlin 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).