public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31609]  New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point
@ 2007-04-17 16:30 michael dot a dot richmond at nasa dot gov
  2007-04-17 19:57 ` [Bug fortran/31609] " aldot at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-04-17 16:30 UTC (permalink / raw)
  To: gcc-bugs

gfortran segfaults when I compile the following module. It also segfaults if I
change "i = k()" to "i = j()".

MODULE ksbin1_aux_mod
  CONTAINS
    SUBROUTINE sub
    i = k()
    END SUBROUTINE sub
    FUNCTION j () 
    j = 0 
    ENTRY k () 
    k = 0
    END FUNCTION j
END MODULE ksbin1_aux_mod


-- 
           Summary: gfortran segfaults when compiling a module that calls a
                    contained function with an ENTRY point
           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=31609


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

* [Bug fortran/31609] gfortran segfaults when compiling a module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
@ 2007-04-17 19:57 ` aldot at gcc dot gnu dot org
  2007-06-06  1:34 ` jvdelisle at gcc dot gnu dot org
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: aldot at gcc dot gnu dot org @ 2007-04-17 19:57 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
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.1.2 4.2.0 4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2007-04-17 20:56:48
               date|                            |


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


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

* [Bug fortran/31609] gfortran segfaults when compiling a module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
  2007-04-17 19:57 ` [Bug fortran/31609] " aldot at gcc dot gnu dot org
@ 2007-06-06  1:34 ` jvdelisle at gcc dot gnu dot org
  2007-06-06  1:59 ` jvdelisle at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-06-06  1:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jvdelisle at gcc dot gnu dot org  2007-06-06 01:34 -------
Confirmed.  I will investigate a little.


-- 


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


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

* [Bug fortran/31609] gfortran segfaults when compiling a module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
  2007-04-17 19:57 ` [Bug fortran/31609] " aldot at gcc dot gnu dot org
  2007-06-06  1:34 ` jvdelisle at gcc dot gnu dot org
@ 2007-06-06  1:59 ` jvdelisle at gcc dot gnu dot org
  2007-06-29 18:17 ` awgreynolds at earthlink dot net
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-06-06  1:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2007-06-06 01:59 -------
The problem is here in resolve.c:

static int
generic_sym (gfc_symbol *sym)
{
  gfc_symbol *s;

  if (sym->attr.generic ||
      (sym->attr.intrinsic && gfc_generic_intrinsic (sym->name)))
    return 1;

  if (was_declared (sym) || sym->ns->parent == NULL)
    return 0;

  gfc_find_symbol (sym->name, sym->ns->parent, 1, &s);

  return (s == NULL) ? 0 : generic_sym (s);
}

gfc_find_symbol is returning the same symbol that is called with generic_sym
and thus we are in an infinite loop, calling genric_sym with that same symbol
over and over again.

I think this is related to 32157.  gfortran does not discriminate symbols of
the same name but with different scope or type.


-- 


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


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

* [Bug fortran/31609] gfortran segfaults when compiling a module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (2 preceding siblings ...)
  2007-06-06  1:59 ` jvdelisle at gcc dot gnu dot org
@ 2007-06-29 18:17 ` awgreynolds at earthlink dot net
  2007-07-08 15:20 ` [Bug fortran/31609] " dfranke at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: awgreynolds at earthlink dot net @ 2007-06-29 18:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from awgreynolds at earthlink dot net  2007-06-29 18:17 -------
Created an attachment (id=13806)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13806&action=view)
2 include files and 1 f90

gfortran -c utility.f90
utility.f90:0: internal compiler error: Bus error

Not sure if this is same bug or new one.


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (3 preceding siblings ...)
  2007-06-29 18:17 ` awgreynolds at earthlink dot net
@ 2007-07-08 15:20 ` dfranke at gcc dot gnu dot org
  2007-07-08 19:40 ` pault at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-07-08 15:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dfranke at gcc dot gnu dot org  2007-07-08 15:20 -------
Jerry, 
the patch in PR32157, comment #2 seems to fix this one as well.


-- 

dfranke at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (4 preceding siblings ...)
  2007-07-08 15:20 ` [Bug fortran/31609] " dfranke at gcc dot gnu dot org
@ 2007-07-08 19:40 ` pault at gcc dot gnu dot org
  2007-07-08 19:44 ` dfranke at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-07-08 19:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pault at gcc dot gnu dot org  2007-07-08 19:40 -------
(In reply to comment #4)

> Not sure if this is same bug or new one.
> 

Al,

How do I load a .zip file through Bugzilla, please?

Paul


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (5 preceding siblings ...)
  2007-07-08 19:40 ` pault at gcc dot gnu dot org
@ 2007-07-08 19:44 ` dfranke at gcc dot gnu dot org
  2007-07-08 19:54 ` jvdelisle at verizon dot net
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-07-08 19:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dfranke at gcc dot gnu dot org  2007-07-08 19:44 -------
> Not sure if this is same bug or new one.

Paul, this probably became PR32594.


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (6 preceding siblings ...)
  2007-07-08 19:44 ` dfranke at gcc dot gnu dot org
@ 2007-07-08 19:54 ` jvdelisle at verizon dot net
  2007-07-09  4:45 ` pault at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at verizon dot net @ 2007-07-08 19:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jvdelisle at verizon dot net  2007-07-08 19:54 -------
Subject: Re:  module that calls a contained function with an
 ENTRY point

pault at gcc dot gnu dot org wrote:
> ------- Comment #5 from pault at gcc dot gnu dot org  2007-07-08 19:40 -------
> (In reply to comment #4)
> 
>> Not sure if this is same bug or new one.
>>
> 
> Al,
> 
> How do I load a .zip file through Bugzilla, please?
> 
> Paul
> 
> 
goto irc and we talk.

Jerry


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (7 preceding siblings ...)
  2007-07-08 19:54 ` jvdelisle at verizon dot net
@ 2007-07-09  4:45 ` pault at gcc dot gnu dot org
  2007-07-26  5:35 ` jvdelisle at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-07-09  4:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pault at gcc dot gnu dot org  2007-07-09 04:45 -------
This ICEs as well:

MODULE ksbin1_aux_mod
  interface foo
    module procedure k
  end interface
  CONTAINS
    FUNCTION j () 
    j = 1 
    ENTRY k () 
    k = 2
    END FUNCTION j
END MODULE ksbin1_aux_mod

I thought that such things had been fixed a while since *sigh*

Paul


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (8 preceding siblings ...)
  2007-07-09  4:45 ` pault at gcc dot gnu dot org
@ 2007-07-26  5:35 ` jvdelisle at gcc dot gnu dot org
  2007-07-28 15:30 ` jvdelisle at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-07-26  5:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jvdelisle at gcc dot gnu dot org  2007-07-26 05:35 -------
This fixes the infinite recursive loop and fixes a segfault I was getting on
the original test case.  The test case in comment #8 is something different.

Index: resolve.c
===================================================================
--- resolve.c   (revision 126937)
+++ resolve.c   (working copy)
@@ -789,8 +789,16 @@ generic_sym (gfc_symbol *sym)
     return 0;

   gfc_find_symbol (sym->name, sym->ns->parent, 1, &s);
+  
+  if (s != NULL)
+    {
+      if (s == sym)
+       return 0;
+      else
+       return generic_sym (s);
+    }

-  return (s == NULL) ? 0 : generic_sym (s);
+  return 0;
 }




-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (9 preceding siblings ...)
  2007-07-26  5:35 ` jvdelisle at gcc dot gnu dot org
@ 2007-07-28 15:30 ` jvdelisle at gcc dot gnu dot org
  2007-07-28 21:17 ` jvdelisle at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-07-28 15:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jvdelisle at gcc dot gnu dot org  2007-07-28 15:29 -------
Created an attachment (id=13994)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13994&action=view)
Example of bad translation

This attached example of tree-dump-original shows that we are getting a
translation error.  See the k=2B .  It should be k.1 = 2.  So the error is
after my initial patch with test case in #8:

pr31609-2.f90:11: internal compiler error: gimplification failed

Getting closer I hope


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (10 preceding siblings ...)
  2007-07-28 15:30 ` jvdelisle at gcc dot gnu dot org
@ 2007-07-28 21:17 ` jvdelisle at gcc dot gnu dot org
  2007-07-28 22:03 ` jvdelisle at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-07-28 21:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from jvdelisle at gcc dot gnu dot org  2007-07-28 21:17 -------
Subject: Bug 31609

Author: jvdelisle
Date: Sat Jul 28 21:17:20 2007
New Revision: 127026

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127026
Log:
2007-07-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/31609
        * resolve.c (generic_sym): Check for a same symbol and if so, return to
        avoid infinite recursion.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (11 preceding siblings ...)
  2007-07-28 21:17 ` jvdelisle at gcc dot gnu dot org
@ 2007-07-28 22:03 ` jvdelisle at gcc dot gnu dot org
  2007-07-29 23:24 ` jvdelisle at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-07-28 22:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from jvdelisle at gcc dot gnu dot org  2007-07-28 22:02 -------
Subject: Bug 31609

Author: jvdelisle
Date: Sat Jul 28 22:02:42 2007
New Revision: 127028

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127028
Log:
2007-07-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/31609
        * gfortran.dg/entry_11.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/entry_11.f90
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (12 preceding siblings ...)
  2007-07-28 22:03 ` jvdelisle at gcc dot gnu dot org
@ 2007-07-29 23:24 ` jvdelisle at gcc dot gnu dot org
  2007-07-30 16:22 ` pault at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-07-29 23:24 UTC (permalink / raw)
  To: gcc-bugs

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



------- Comment #13 from jvdelisle at gcc dot gnu dot org  2007-07-29 23:23 -------
The patch applied in Comment #11 fixes the original test case.

The modified test case in Comment #8 is still broken.

pr31609-2.f90: In function ‘master.0.j’:
pr31609-2.f90:10: internal compiler error: in gfc_conv_variable, at
fortran/trans-expr.c:452

I am going to have to leave this to others.


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (13 preceding siblings ...)
  2007-07-29 23:24 ` jvdelisle at gcc dot gnu dot org
@ 2007-07-30 16:22 ` pault at gcc dot gnu dot org
  2007-07-31  1:39 ` jvdelisle at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-07-30 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from pault at gcc dot gnu dot org  2007-07-30 16:22 -------
To my amazement, the patch below fixes the problem and, I am pretty sure, will
complete its regtest OK.

Before posting it, I want to thoroughly check that I have understood the
problem and that the fix is valid.

Cheers

Paul

Index: /svn/trunk/gcc/fortran/resolve.c
===================================================================
*** /svn/trunk/gcc/fortran/resolve.c    (revision 127061)
--- /svn/trunk/gcc/fortran/resolve.c    (working copy)
*************** resolve_entries (gfc_namespace *ns)
*** 390,396 ****
    gfc_namespace *old_ns;
    gfc_code *c;
    gfc_symbol *proc;
!   gfc_entry_list *el;
    char name[GFC_MAX_SYMBOL_LEN + 1];
    static int master_count = 0;

--- 390,396 ----
    gfc_namespace *old_ns;
    gfc_code *c;
    gfc_symbol *proc;
!   gfc_entry_list *el, *el2;
    char name[GFC_MAX_SYMBOL_LEN + 1];
    static int master_count = 0;

*************** resolve_entries (gfc_namespace *ns)
*** 431,436 ****
--- 431,444 ----
        && ns->parent && ns->parent->proc_name->attr.flavor == FL_MODULE)
      el->sym->ns = ns;

+   /* Do the same for entries where the master is not a module
+      procedure.  These are retained in the module namespace because
+      of the module procedure declaration.  */
+   for (el2 = el->next; el2; el2 = el2->next)
+     if (el2->sym->ns->proc_name->attr.flavor == FL_MODULE
+         && el2->sym->attr.mod_proc)
+       el2->sym->ns = ns;
+
    /* Add an entry statement for it.  */
    c = gfc_get_code ();
    c->op = EXEC_ENTRY;


-- 

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-04-17 20:56:48         |2007-07-30 16:22:41
               date|                            |


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (14 preceding siblings ...)
  2007-07-30 16:22 ` pault at gcc dot gnu dot org
@ 2007-07-31  1:39 ` jvdelisle at gcc dot gnu dot org
  2007-07-31 14:15 ` patchapp at dberlin dot org
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-07-31  1:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from jvdelisle at gcc dot gnu dot org  2007-07-31 01:39 -------
Regression tests fine on X86-64-Gnu/Linux


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (15 preceding siblings ...)
  2007-07-31  1:39 ` jvdelisle at gcc dot gnu dot org
@ 2007-07-31 14:15 ` patchapp at dberlin dot org
  2007-07-31 22:14 ` pault at gcc dot gnu dot org
  2007-07-31 22:28 ` pault at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: patchapp at dberlin dot org @ 2007-07-31 14:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from patchapp at dberlin dot org  2007-07-31 14:15 -------
Subject: Bug number PR31609

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-07/msg02177.html


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (16 preceding siblings ...)
  2007-07-31 14:15 ` patchapp at dberlin dot org
@ 2007-07-31 22:14 ` pault at gcc dot gnu dot org
  2007-07-31 22:28 ` pault at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-07-31 22:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from pault at gcc dot gnu dot org  2007-07-31 22:14 -------
Subject: Bug 31609

Author: pault
Date: Tue Jul 31 22:14:29 2007
New Revision: 127108

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

        PR fortran/31609
        * resolve.c (resolve_entries): Entries declared to be module
        procedures must point to the function namespace.

2007-08-01  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/31609
        * gfortran.dg/entry_12.f90: New test.

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


-- 


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


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

* [Bug fortran/31609] module that calls a contained function with an ENTRY point
  2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
                   ` (17 preceding siblings ...)
  2007-07-31 22:14 ` pault at gcc dot gnu dot org
@ 2007-07-31 22:28 ` pault at gcc dot gnu dot org
  18 siblings, 0 replies; 20+ messages in thread
From: pault at gcc dot gnu dot org @ 2007-07-31 22:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from pault at gcc dot gnu dot org  2007-07-31 22:28 -------
Fixed on trunk - this is clearly related to pr31214.... so, hey ho, off to work
we go!

Paul


-- 

pault at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-07-31 22:28 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-17 16:30 [Bug fortran/31609] New: gfortran segfaults when compiling a module that calls a contained function with an ENTRY point michael dot a dot richmond at nasa dot gov
2007-04-17 19:57 ` [Bug fortran/31609] " aldot at gcc dot gnu dot org
2007-06-06  1:34 ` jvdelisle at gcc dot gnu dot org
2007-06-06  1:59 ` jvdelisle at gcc dot gnu dot org
2007-06-29 18:17 ` awgreynolds at earthlink dot net
2007-07-08 15:20 ` [Bug fortran/31609] " dfranke at gcc dot gnu dot org
2007-07-08 19:40 ` pault at gcc dot gnu dot org
2007-07-08 19:44 ` dfranke at gcc dot gnu dot org
2007-07-08 19:54 ` jvdelisle at verizon dot net
2007-07-09  4:45 ` pault at gcc dot gnu dot org
2007-07-26  5:35 ` jvdelisle at gcc dot gnu dot org
2007-07-28 15:30 ` jvdelisle at gcc dot gnu dot org
2007-07-28 21:17 ` jvdelisle at gcc dot gnu dot org
2007-07-28 22:03 ` jvdelisle at gcc dot gnu dot org
2007-07-29 23:24 ` jvdelisle at gcc dot gnu dot org
2007-07-30 16:22 ` pault at gcc dot gnu dot org
2007-07-31  1:39 ` jvdelisle at gcc dot gnu dot org
2007-07-31 14:15 ` patchapp at dberlin dot org
2007-07-31 22:14 ` pault at gcc dot gnu dot org
2007-07-31 22:28 ` 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).