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

* [Bug fortran/24783] Implicit none in module overwrite explicit in procedure
  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 ` pinskia at gcc dot gnu dot org
  2006-11-14 18:41 ` patchapp at dberlin dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-10 21:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-10 21:35 -------
Confirmed.


-- 

pinskia 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         |2005-11-10 21:35:25
               date|                            |


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


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

* [Bug fortran/24783] Implicit none in module overwrite explicit in procedure
  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
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: patchapp at dberlin dot org @ 2006-11-14 18:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from patchapp at dberlin dot org  2006-11-14 18:41 -------
Subject: Bug number pr24783

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-11/msg00966.html


-- 


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


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

* [Bug fortran/24783] Implicit none in module overwrite explicit in procedure
  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
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: aldot at gcc dot gnu dot org @ 2006-11-16 22:12 UTC (permalink / raw)
  To: gcc-bugs



-- 

aldot at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aldot at gcc dot gnu dot org
         AssignedTo|unassigned at gcc dot gnu   |aldot at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/fortra
                   |                            |n/2006-11/msg00401.html
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch
      Known to fail|                            |4.1.2 4.2.0 4.3.0
   Last reconfirmed|2006-10-30 08:24:25         |2006-11-16 22:12:08
               date|                            |


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


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

* [Bug fortran/24783] Implicit none in module overwrite explicit in procedure
  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
                   ` (2 preceding siblings ...)
  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
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: aldot at gcc dot gnu dot org @ 2006-11-20 16:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from aldot at gcc dot gnu dot org  2006-11-20 16:20 -------
Subject: Bug 24783

Author: aldot
Date: Mon Nov 20 16:20:33 2006
New Revision: 119016

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119016
Log:
fortran/ChangeLog
2006-11-20  Bernhard Fischer  <aldot@gcc.gnu.org>

        PR fortran/24783
        * resolve.c (resolve_variable): Get the implicit type from the
        symbols namespace rather than the default namespace. Fix whitespace.
        (resolve_formal_arglist, resolve_equivalence): Fix typo.


testsuite/ChangeLog
2006-11-20  Bernhard Fischer  <aldot@gcc.gnu.org>

        PR fortran/24783
        * gfortran.dg/implicit_10.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/implicit_10.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/24783] [4.1 and 4.2 only] Implicit none in module overwrite explicit in procedure
  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
                   ` (3 preceding siblings ...)
  2006-11-20 16:21 ` aldot at gcc dot gnu dot org
@ 2007-01-14 11:05 ` pault at gcc dot gnu dot org
  2007-01-14 11:37 ` aldot at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-01-14 11:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pault at gcc dot gnu dot org  2007-01-14 11:05 -------
(In reply to comment #3)
> Subject: Bug 24783
> 
> Author: aldot
> Date: Mon Nov 20 16:20:33 2006
> New Revision: 119016

Bernhard,

Are you going to apply this to 4.2, or do you want me to do it?  It would be
nice to clear the PR.

Paul


-- 


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


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

* [Bug fortran/24783] [4.1 and 4.2 only] Implicit none in module overwrite explicit in procedure
  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
                   ` (4 preceding siblings ...)
  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
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: aldot at gcc dot gnu dot org @ 2007-01-14 11:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from aldot at gcc dot gnu dot org  2007-01-14 11:37 -------
> Bernhard,
> 
> Are you going to apply this to 4.2, or do you want me to do it?  It would be
> nice to clear the PR.

Please feel free to backport this and (eventually) all other i left unfixed for
non-trunk versions that you may want to fix. Thank you very much for your time!

PS: Also, feel free to (re-)assign them to you, of course.

cheers,
> 
> Paul
> 


-- 


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


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

* [Bug fortran/24783] [4.1 and 4.2 only] Implicit none in module overwrite explicit in procedure
  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
                   ` (5 preceding siblings ...)
  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
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-02-10 16:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from fxcoudert at gcc dot gnu dot org  2007-02-10 16:38 -------
(In reply to comment #5)
> Please feel free to backport this and (eventually) all other i left unfixed for
> non-trunk versions that you may want to fix. Thank you very much for your time!
> 
> PS: Also, feel free to (re-)assign them to you, of course.

Hum, looks like Paul (like most of us) won't have much time to backport
himself. It'd be nice if you could do the backport to 4.2 (there might be a
release soon, AFAIK).


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.1.2 4.2.0 4.3.0           |4.1.2 4.2.0
      Known to work|                            |4.3.0
   Target Milestone|---                         |4.2.0


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


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

* [Bug fortran/24783] [4.1 and 4.2 only] Implicit none in module overwrite explicit in procedure
  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
                   ` (6 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-10 19:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jvdelisle at gcc dot gnu dot org  2007-02-10 19:08 -------
I have the backport ready and i am testing.


-- 


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


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

* [Bug fortran/24783] [4.1 and 4.2 only] Implicit none in module overwrite explicit in procedure
  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
                   ` (7 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-10 23:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jvdelisle at gcc dot gnu dot org  2007-02-10 23:26 -------
Subject: Bug 24783

Author: jvdelisle
Date: Sat Feb 10 23:25:55 2007
New Revision: 121804

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121804
Log:
2007-02-10  Bernhard Fischer  <aldot@gcc.gnu.org>

        Backport from trunk
        PR fortran/24783
        * resolve.c (resolve_variable): Get the implicit type from the
        symbols namespace rather than the default namespace. Fix whitespace.
        (resolve_formal_arglist, resolve_equivalence): Fix typo.

Modified:
    branches/gcc-4_2-branch/gcc/fortran/ChangeLog
    branches/gcc-4_2-branch/gcc/fortran/resolve.c


-- 


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


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

* [Bug fortran/24783] [4.1 and 4.2 only] Implicit none in module overwrite explicit in procedure
  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
                   ` (8 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-10 23:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jvdelisle at gcc dot gnu dot org  2007-02-10 23:30 -------
Subject: Bug 24783

Author: jvdelisle
Date: Sat Feb 10 23:30:38 2007
New Revision: 121806

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121806
Log:
2007-02-10  Bernhard Fischer  <aldot@gcc.gnu.org>

        Backport from trunk:
        PR fortran/24783
        * gfortran.dg/implicit_10.f90: New test.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/implicit_10.f90
Modified:
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/24783] [4.1 and 4.2 only] Implicit none in module overwrite explicit in procedure
  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
                   ` (9 preceding siblings ...)
  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
  12 siblings, 0 replies; 14+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-11  0:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jvdelisle at gcc dot gnu dot org  2007-02-11 00:25 -------
Subject: Bug 24783

Author: jvdelisle
Date: Sun Feb 11 00:25:44 2007
New Revision: 121812

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121812
Log:
2007-02-10  Bernhard Fischer  <aldot@gcc.gnu.org>

        Backport from trunk
        PR fortran/24783
        * resolve.c (resolve_variable): Get the implicit type from the
        symbols namespace rather than the default namespace. Fix whitespace.
        (resolve_formal_arglist, resolve_equivalence): Fix typo.

Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/resolve.c


-- 


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


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

* [Bug fortran/24783] [4.1 and 4.2 only] Implicit none in module overwrite explicit in procedure
  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
                   ` (10 preceding siblings ...)
  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
  12 siblings, 0 replies; 14+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-11  0:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from jvdelisle at gcc dot gnu dot org  2007-02-11 00:27 -------
Subject: Bug 24783

Author: jvdelisle
Date: Sun Feb 11 00:26:56 2007
New Revision: 121813

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121813
Log:
2007-02-10  Bernhard Fischer  <aldot@gcc.gnu.org>

        Backport from trunk:
        PR fortran/24783
        * gfortran.dg/implicit_10.f90: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/implicit_10.f90
Modified:
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/24783] [4.1 and 4.2 only] Implicit none in module overwrite explicit in procedure
  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
                   ` (11 preceding siblings ...)
  2007-02-11  0:27 ` jvdelisle at gcc dot gnu dot org
@ 2007-02-11  0:28 ` jvdelisle at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-02-11  0:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from jvdelisle at gcc dot gnu dot org  2007-02-11 00:28 -------
Fixed on 4.1 and 4.2 now. Backported


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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