public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24783]  New: Implicit none in module overwrite explicit in procedure
@ 2005-11-10 21:04 Patrick dot Begou at hmg dot inpg dot fr
  2005-11-10 21:35 ` [Bug fortran/24783] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Patrick dot Begou at hmg dot inpg dot fr @ 2005-11-10 21:04 UTC (permalink / raw)
  To: gcc-bugs

The small program given do not compile with gfortran: Compiler complains:

"Error: Symbol 'ny' at (1) has no IMPLICIT type"

- Removing "IMPLICIT NONE" for the module allows compilation.
or
- removing the "DIMENSION vec(ny)" allows compilation.
The problem seems to be related to implicit ny variable used as the dimension
argument of the vector.

This program is the shorter I can write to reproduce the bug.

      MODULE mod_avanti_e

      IMPLICIT NONE

      CONTAINS

c********************************************************
c
      SUBROUTINE eval(vec, ny)
c
c********************************************************
c
      IMPLICIT REAL (a-h,o-z)
      IMPLICIT INTEGER (i-n)
      DIMENSION vec(ny)
c
      RETURN
      END SUBROUTINE eval

      END MODULE mod_avanti_e


Regards,

Patrick


-- 
           Summary: Implicit none in module overwrite explicit in procedure
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Patrick dot Begou at hmg dot inpg dot fr
  GCC host triplet: Linux  2.6.13-1.1532_FC4  i686 athlon i386 GNU/Linux


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


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

end of thread, other threads:[~2007-02-11  0:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-10 21:04 [Bug fortran/24783] New: Implicit none in module overwrite explicit in procedure Patrick dot Begou at hmg dot inpg dot fr
2005-11-10 21:35 ` [Bug fortran/24783] " pinskia at gcc dot gnu dot org
2006-11-14 18:41 ` patchapp at dberlin dot org
2006-11-16 22:12 ` aldot at gcc dot gnu dot org
2006-11-20 16:21 ` aldot at gcc dot gnu dot org
2007-01-14 11:05 ` [Bug fortran/24783] [4.1 and 4.2 only] " pault at gcc dot gnu dot org
2007-01-14 11:37 ` aldot at gcc dot gnu dot org
2007-02-10 16:38 ` fxcoudert at gcc dot gnu dot org
2007-02-10 19:08 ` jvdelisle at gcc dot gnu dot org
2007-02-10 23:26 ` jvdelisle at gcc dot gnu dot org
2007-02-10 23:30 ` jvdelisle at gcc dot gnu dot org
2007-02-11  0:26 ` jvdelisle at gcc dot gnu dot org
2007-02-11  0:27 ` jvdelisle at gcc dot gnu dot org
2007-02-11  0:28 ` jvdelisle 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).