public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33897]  New: Should an ENTRY in a contained function be visible from another contained routine?
@ 2007-10-25 16:46 michael dot a dot richmond at nasa dot gov
  2007-10-25 17:33 ` [Bug fortran/33897] " jv244 at cam dot ac dot uk
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-10-25 16:46 UTC (permalink / raw)
  To: gcc-bugs

gfortran links the following without error, whereas Compaq Fortran, Lahey
Fortran, and g95 tell me that setbd is an unresolved external.

MODULE ksbin1_aux_mod
 CONTAINS
  SUBROUTINE nxtstg() 
    INTEGER :: i
    INTEGER :: setbd 
    i = setbd()
  END SUBROUTINE nxtstg
  FUNCTION binden() 
    INTEGER :: binden
    INTEGER :: setbd 
    binden = 0
  ENTRY setbd() 
    setbd = 0
  END FUNCTION binden
END MODULE ksbin1_aux_mod
PROGRAM test
END PROGRAM test


-- 
           Summary: Should an ENTRY in a contained function be visible from
                    another contained routine?
           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=33897


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

* [Bug fortran/33897] Should an ENTRY in a contained function be visible from another contained routine?
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
@ 2007-10-25 17:33 ` jv244 at cam dot ac dot uk
  2007-10-25 17:41 ` [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules jv244 at cam dot ac dot uk
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-10-25 17:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jv244 at cam dot ac dot uk  2007-10-25 17:33 -------
this is a slightly modified testcase, which g95, NAG f95, IBM xlf90, ifort,
pgf90 all compile & link while it fails to compile with gfortran. The error
message by gfortran (Global name 'setbd' at (1) is already being used as a
FUNCTION at (2)) suggests gfortran has a problem.

Interestingly, it returns 1 with g95, NAG f95, IBM xlf90, pgf90 and 0 with
ifort.

MODULE ksbin1_aux_mod
 CONTAINS
  SUBROUTINE nxtstg()
    INTEGER :: i
    INTEGER :: setbd
    i = setbd()
    write(6,*) i
  END SUBROUTINE nxtstg
  FUNCTION binden()
    INTEGER :: binden
    INTEGER :: setbd
    binden = 0
  ENTRY setbd()
    setbd = 0
  END FUNCTION binden
END MODULE ksbin1_aux_mod
PROGRAM test
  USE ksbin1_aux_mod
  CALL nxtstg()
END PROGRAM test
INTEGER FUNCTION setbd()
  setbd=1
END FUNCTION setbd

A simpler testcase is:
MODULE M1
CONTAINS
 SUBROUTINE S2()
    ENTRY E2()
    write(6,*) 'C'
 END SUBROUTINE S2
END MODULE M1

SUBROUTINE S2()
    ENTRY E2()
    write(6,*) 'E'
END SUBROUTINE S2


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |32834
              nThis|                            |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2007-10-25 17:33:09
               date|                            |


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


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

* [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
  2007-10-25 17:33 ` [Bug fortran/33897] " jv244 at cam dot ac dot uk
@ 2007-10-25 17:41 ` jv244 at cam dot ac dot uk
  2007-10-26  9:10 ` pault at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-10-25 17:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jv244 at cam dot ac dot uk  2007-10-25 17:41 -------
this works with gcc_4_0_branch, which makes this a regression.

MODULE M1
CONTAINS
 SUBROUTINE S2()
    ENTRY E2()
    write(6,*) 'C'
 END SUBROUTINE S2
END MODULE M1

SUBROUTINE S2()
    ENTRY E2()
    write(6,*) 'E'
END SUBROUTINE S2

USE M1
CALL E2()
END


-- 

jv244 at cam dot ac dot uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.0.4
            Summary|Should an ENTRY in a        |[4.1/4.2/4.3 Regression]
                   |contained function be       |Entries and modules
                   |visible from another        |
                   |contained routine?          |


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


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

* [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
  2007-10-25 17:33 ` [Bug fortran/33897] " jv244 at cam dot ac dot uk
  2007-10-25 17:41 ` [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules jv244 at cam dot ac dot uk
@ 2007-10-26  9:10 ` pault at gcc dot gnu dot org
  2007-10-26  9:36 ` pault at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-10-26  9:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pault at gcc dot gnu dot org  2007-10-26 09:10 -------
(In reply to comment #2)
> this works with gcc_4_0_branch, which makes this a regression.

Michael and Joost,

Are you sure that anything is wrong with gfortran, here?  If there is, I would
agree that this is a regression.  When Michael first posted PRs on ENTRY
statements in modules, I was a bit startled because ENTRY statements are a bit
contrary to the spirit of modules.  That said, there is nothing wrong with it
and..... according to the standard:

NOTE 11.3
Although statement function definitions, ENTRY statements, and FORMAT
statements shall not appear in the specification part of a module, they may
appear in the specification part of a module subprogram in the module.
A module is host to any module subprograms (12.1.2.2) it contains, and the
entities in the module are therefore accessible in the module subprograms
through host association.

Therefore, there is nothing wrong with having a module procedure with an entry
and this note says that gfortran is right on first testscase, since setbd is
made available by host association.

>From 12.5.2.5, we have:

Because an ENTRY statement defines an additional function or an additional
subroutine, it is referenced in the same manner as any other function or
subroutine (12.4).

I take it to mean that the ENTRY in the examples given is also made available
by use association.

Given these two bits of guidance from the standard, I believe that gfortran's
behaviour is consistent and correct, until the additional function setbd is
introduced. There, the complaint Global name 'setbd' at (1) is already being
used as a FUNCTION at (2), which does not happen if the new function is called
'binden' says that there is indeed something wrong - the module entry is being
promoted to a global symbol, which is not correct.

The examples of #1 are indeed bugs but not really a regression - entry in
modules did not work at all!

Cheers

Paul


-- 


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


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

* [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (2 preceding siblings ...)
  2007-10-26  9:10 ` pault at gcc dot gnu dot org
@ 2007-10-26  9:36 ` pault at gcc dot gnu dot org
  2007-10-26  9:45 ` pault at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-10-26  9:36 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2610 bytes --]



------- Comment #4 from pault at gcc dot gnu dot org  2007-10-26 09:36 -------
This gives the correct behaviour:

Index: gcc/fortran/decl.c
===================================================================
*** gcc/fortran/decl.c  (révision 129434)
--- gcc/fortran/decl.c  (copie de travail)
*************** gfc_match_entry (void)
*** 4376,4382 ****
    if (state == COMP_SUBROUTINE)
      {
        /* An entry in a subroutine.  */
!       if (!add_global_entry (name, 1))
        return MATCH_ERROR;

        m = gfc_match_formal_arglist (entry, 0, 1);
--- 4376,4382 ----
    if (state == COMP_SUBROUTINE)
      {
        /* An entry in a subroutine.  */
!       if (!gfc_current_ns->parent && !add_global_entry (name, 1))
        return MATCH_ERROR;

        m = gfc_match_formal_arglist (entry, 0, 1);
*************** gfc_match_entry (void)
*** 4398,4404 ****
            ENTRY f() RESULT (r)
         can't be written as
            ENTRY f RESULT (r).  */
!       if (!add_global_entry (name, 0))
        return MATCH_ERROR;

        old_loc = gfc_current_locus;
--- 4398,4404 ----
            ENTRY f() RESULT (r)
         can't be written as
            ENTRY f RESULT (r).  */
!       if (!gfc_current_ns->parent && !add_global_entry (name, 0))
        return MATCH_ERROR;

        old_loc = gfc_current_locus;

such that 

MODULE ksbin1_aux_mod
 CONTAINS
  SUBROUTINE nxtstg()
    INTEGER :: i
    INTEGER :: setbd
    i = setbd()  ! available by host association.
    write(6,*) i
  END SUBROUTINE nxtstg
  FUNCTION binden()
    INTEGER :: binden
    INTEGER :: setbd
    binden = 0
  ENTRY setbd()
    setbd = 99
  END FUNCTION binden
END MODULE ksbin1_aux_mod

PROGRAM test
  USE ksbin1_aux_mod, only : nxtstg
  integer setbd ! setbd is external, since not use assoc.
  CALL nxtstg()
  print *, setbd ()
  call foo
contains
  subroutine foo
    USE ksbin1_aux_mod ! module setbd is available
    print *, setbd ()
  end subroutine
END PROGRAM test

INTEGER FUNCTION setbd()
  setbd=42
END FUNCTION setbd

gives

          99
          42
          99

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-10-25 17:33:09         |2007-10-26 09:36:40
               date|                            |


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


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

* [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (3 preceding siblings ...)
  2007-10-26  9:36 ` pault at gcc dot gnu dot org
@ 2007-10-26  9:45 ` pault at gcc dot gnu dot org
  2007-10-26 10:42 ` jv244 at cam dot ac dot uk
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-10-26  9:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pault at gcc dot gnu dot org  2007-10-26 09:45 -------
As a final remark: Digital F90 5.0 gives the result of gfortran in #4, so now I
am convinced that I am right!

The Lahey source checker shows that setbd is not host associated in the module
but is use associated in foo.  I'll bet that it gives:

          42
          42
          99

Paul


Paul


-- 


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


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

* [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (4 preceding siblings ...)
  2007-10-26  9:45 ` pault at gcc dot gnu dot org
@ 2007-10-26 10:42 ` jv244 at cam dot ac dot uk
  2007-10-26 13:38 ` pault at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-10-26 10:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jv244 at cam dot ac dot uk  2007-10-26 10:42 -------
(In reply to comment #5)
> As a final remark: Digital F90 5.0 gives the result of gfortran in #4, so now I
> am convinced that I am right!

I was actually not so sure as you seem to be. I agree it is intuitive to
consider it available through host association. I'm only surprised that NAG,
IBM, g95, Lahey, pgf90 consistently say it is not (i.e. they all print 42 42
99).

My judgement of 'regression' seems to have been a pilot error.


-- 


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


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

* [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (5 preceding siblings ...)
  2007-10-26 10:42 ` jv244 at cam dot ac dot uk
@ 2007-10-26 13:38 ` pault at gcc dot gnu dot org
  2007-10-26 14:55 ` jv244 at cam dot ac dot uk
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-10-26 13:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pault at gcc dot gnu dot org  2007-10-26 13:38 -------
(In reply to comment #6)
> (In reply to comment #5)
> > As a final remark: Digital F90 5.0 gives the result of gfortran in #4, so now I
> > am convinced that I am right!
> I was actually not so sure as you seem to be. I agree it is intuitive to
> consider it available through host association. I'm only surprised that NAG,
> IBM, g95, Lahey, pgf90 consistently say it is not (i.e. they all print 42 42
> 99).

How about I take it to comp.lang.fortran?

I find nothing in the standard that says that entries should not be host
associated and plenty to say that they should.  Why would entrys be availeble
by use association and not by host association within the module?

Anyway, thanks for giving it your attention.

Cheers

Paul


-- 


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


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

* [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (6 preceding siblings ...)
  2007-10-26 13:38 ` pault at gcc dot gnu dot org
@ 2007-10-26 14:55 ` jv244 at cam dot ac dot uk
  2007-10-26 15:51 ` burnus at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-10-26 14:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jv244 at cam dot ac dot uk  2007-10-26 14:54 -------
(In reply to comment #7)

> How about I take it to comp.lang.fortran?

yes, and Ron has given the golden clue (how easy to overlook these things).
Indeed, the integer declaration of setbd in nxtstg implies that the external
one has to be called as the host-associated one is inaccessible (14.6.1.3).


-- 


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


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

* [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (7 preceding siblings ...)
  2007-10-26 14:55 ` jv244 at cam dot ac dot uk
@ 2007-10-26 15:51 ` burnus at gcc dot gnu dot org
  2007-10-27  7:07 ` [Bug fortran/33897] Incorrect host association in module pault at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-10-26 15:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from burnus at gcc dot gnu dot org  2007-10-26 15:51 -------
> > How about I take it to comp.lang.fortran?

http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/3076af3caa74347d/


-- 


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


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

* [Bug fortran/33897] Incorrect host association in module
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (8 preceding siblings ...)
  2007-10-26 15:51 ` burnus at gcc dot gnu dot org
@ 2007-10-27  7:07 ` pault at gcc dot gnu dot org
  2007-10-27 13:31 ` burnus at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-10-27  7:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pault at gcc dot gnu dot org  2007-10-27 07:07 -------
The logic is all wrong in parse.c(gfc_fixup_sibling_symbols).  I can fix this
bug but I need to regtest and to check for other such cases in the standard.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3 Regression]    |Incorrect host association
                   |Entries and modules         |in module


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


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

* [Bug fortran/33897] Incorrect host association in module
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (9 preceding siblings ...)
  2007-10-27  7:07 ` [Bug fortran/33897] Incorrect host association in module pault at gcc dot gnu dot org
@ 2007-10-27 13:31 ` burnus at gcc dot gnu dot org
  2007-10-27 15:47 ` paulthomas2 at wanadoo dot fr
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-10-27 13:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from burnus at gcc dot gnu dot org  2007-10-27 13:31 -------
To recap (correct me, if I'm wrong):

The program in comment 0 (original bug description) is valid Fortran, but the
"setbd" is an external function which needs to be provided at link time. It is
not the module function as "integer :: setbd" causes "setbd" to be an external
function with an implicit interface. -> wrong-code bug as gfortran uses the
module function. (see also program in comment 4.)

The first program of comment 1: I think this is valid Fortran code; what
puzzles me is that gfortran rejects it with "Global name 'setbd' is already
being used as a FUNCTION". I think these are complete different name spaces
with the function names __ksbin1_aux_mod_MOD_setbd and setbd_: One being part
of a module and the other not. The same for the second program of comment 1. ->
rejects-valid.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org


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


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

* [Bug fortran/33897] Incorrect host association in module
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (10 preceding siblings ...)
  2007-10-27 13:31 ` burnus at gcc dot gnu dot org
@ 2007-10-27 15:47 ` paulthomas2 at wanadoo dot fr
  2007-10-30  3:47 ` patchapp at dberlin dot org
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: paulthomas2 at wanadoo dot fr @ 2007-10-27 15:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from paulthomas2 at wanadoo dot fr  2007-10-27 15:47 -------
Subject: Re:  Incorrect host association in module

burnus at gcc dot gnu dot org wrote:
> ------- Comment #11 from burnus at gcc dot gnu dot org  2007-10-27 13:31 -------
> To recap (correct me, if I'm wrong):
>
> The program in comment 0 (original bug description) is valid Fortran, but the
> "setbd" is an external function which needs to be provided at link time. It is
> not the module function as "integer :: setbd" causes "setbd" to be an external
> function with an implicit interface. -> wrong-code bug as gfortran uses the
> module function. (see also program in comment 4.)
>   
Correct
> The first program of comment 1: I think this is valid Fortran code; what
> puzzles me is that gfortran rejects it with "Global name 'setbd' is already
> being used as a FUNCTION". I think these are complete different name spaces
> with the function names __ksbin1_aux_mod_MOD_setbd and setbd_: One being part
> of a module and the other not. The same for the second program of comment 1. ->
> rejects-valid.
>   
decl.c uses add_global_entry a bit too profusely.  It needs to be 
checked that the entry has global scope; ie. that gfc_current_ns->parent 
== NULL.

I have a patch that properly implements 14.6.1.3, which is regtesting as 
I write.

Cheers

paul


-- 


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


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

* [Bug fortran/33897] Incorrect host association in module
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (11 preceding siblings ...)
  2007-10-27 15:47 ` paulthomas2 at wanadoo dot fr
@ 2007-10-30  3:47 ` patchapp at dberlin dot org
  2007-10-30 22:15 ` patchapp at dberlin dot org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: patchapp at dberlin dot org @ 2007-10-30  3:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from patchapp at dberlin dot org  2007-10-30 03:47 -------
Subject: Bug number PR33897

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/2007-10/msg01694.html


-- 


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


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

* [Bug fortran/33897] Incorrect host association in module
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (12 preceding siblings ...)
  2007-10-30  3:47 ` patchapp at dberlin dot org
@ 2007-10-30 22:15 ` patchapp at dberlin dot org
  2007-10-31  9:59 ` burnus at gcc dot gnu dot org
  2007-10-31  9:59 ` burnus at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: patchapp at dberlin dot org @ 2007-10-30 22:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from patchapp at dberlin dot org  2007-10-30 22:15 -------
Subject: Bug number PR33897

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/2007-10/msg01694.html


-- 


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


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

* [Bug fortran/33897] Incorrect host association in module
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (14 preceding siblings ...)
  2007-10-31  9:59 ` burnus at gcc dot gnu dot org
@ 2007-10-31  9:59 ` burnus at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-10-31  9:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from burnus at gcc dot gnu dot org  2007-10-31 09:59 -------
FIXED on the trunk (= 4.3.0).


-- 

burnus at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/33897] Incorrect host association in module
  2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
                   ` (13 preceding siblings ...)
  2007-10-30 22:15 ` patchapp at dberlin dot org
@ 2007-10-31  9:59 ` burnus at gcc dot gnu dot org
  2007-10-31  9:59 ` burnus at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-10-31  9:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from burnus at gcc dot gnu dot org  2007-10-31 09:59 -------
Subject: Bug 33897

Author: burnus
Date: Wed Oct 31 09:59:16 2007
New Revision: 129795

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129795
Log:
2007-10-31  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/33897
        * decl.c (gfc_match_entry): Do not make ENTRY name
        global for contained procedures.
        * parse.c (gfc_fixup_sibling_symbols): Fix code for
        determining whether a procedure is external.

2007-10-31  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/33897
        * gfortran.dg/contained_3.f90: New.


Added:
    trunk/gcc/testsuite/gfortran.dg/contained_3.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/fortran/parse.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2007-10-31  9:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-25 16:46 [Bug fortran/33897] New: Should an ENTRY in a contained function be visible from another contained routine? michael dot a dot richmond at nasa dot gov
2007-10-25 17:33 ` [Bug fortran/33897] " jv244 at cam dot ac dot uk
2007-10-25 17:41 ` [Bug fortran/33897] [4.1/4.2/4.3 Regression] Entries and modules jv244 at cam dot ac dot uk
2007-10-26  9:10 ` pault at gcc dot gnu dot org
2007-10-26  9:36 ` pault at gcc dot gnu dot org
2007-10-26  9:45 ` pault at gcc dot gnu dot org
2007-10-26 10:42 ` jv244 at cam dot ac dot uk
2007-10-26 13:38 ` pault at gcc dot gnu dot org
2007-10-26 14:55 ` jv244 at cam dot ac dot uk
2007-10-26 15:51 ` burnus at gcc dot gnu dot org
2007-10-27  7:07 ` [Bug fortran/33897] Incorrect host association in module pault at gcc dot gnu dot org
2007-10-27 13:31 ` burnus at gcc dot gnu dot org
2007-10-27 15:47 ` paulthomas2 at wanadoo dot fr
2007-10-30  3:47 ` patchapp at dberlin dot org
2007-10-30 22:15 ` patchapp at dberlin dot org
2007-10-31  9:59 ` burnus at gcc dot gnu dot org
2007-10-31  9:59 ` burnus 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).