public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50405] New: allocation LOOP or SIGSEGV
@ 2011-09-15  8:30 zeccav at gmail dot com
  2011-09-15 13:51 ` [Bug fortran/50405] " Joost.VandeVondele at pci dot uzh.ch
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zeccav at gmail dot com @ 2011-09-15  8:30 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50405
           Summary: allocation LOOP or SIGSEGV
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zeccav@gmail.com


Created attachment 25281
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25281
just compile it

allocation LOOP or SIGSEGV


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

* [Bug fortran/50405] allocation LOOP or SIGSEGV
  2011-09-15  8:30 [Bug fortran/50405] New: allocation LOOP or SIGSEGV zeccav at gmail dot com
@ 2011-09-15 13:51 ` Joost.VandeVondele at pci dot uzh.ch
  2013-05-12 18:36 ` bdavis at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Joost.VandeVondele at pci dot uzh.ch @ 2011-09-15 13:51 UTC (permalink / raw)
  To: gcc-bugs

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

Joost VandeVondele <Joost.VandeVondele at pci dot uzh.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-09-15
     Ever Confirmed|0                           |1


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

* [Bug fortran/50405] allocation LOOP or SIGSEGV
  2011-09-15  8:30 [Bug fortran/50405] New: allocation LOOP or SIGSEGV zeccav at gmail dot com
  2011-09-15 13:51 ` [Bug fortran/50405] " Joost.VandeVondele at pci dot uzh.ch
@ 2013-05-12 18:36 ` bdavis at gcc dot gnu.org
  2013-05-27 14:17 ` burnus at gcc dot gnu.org
  2013-05-27 14:18 ` burnus at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: bdavis at gcc dot gnu.org @ 2013-05-12 18:36 UTC (permalink / raw)
  To: gcc-bugs

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

Bud Davis <bdavis at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bdavis at gcc dot gnu.org

--- Comment #1 from Bud Davis <bdavis at gcc dot gnu.org> ---
possible patch:

Index: gcc/gcc/fortran/resolve.c
===================================================================
--- gcc/gcc/fortran/resolve.c    (revision 198804)
+++ gcc/gcc/fortran/resolve.c    (working copy)
@@ -306,6 +306,14 @@
            && !resolve_procedure_interface (sym))
     return;

+      if (strcmp (proc->name,sym->name) == 0)
+        {
+       gfc_error ("Self referential argument "
+       "'%s' at %L is not allowed", sym->name,
+       &proc->declared_at);
+       return;
+        }
+
       if (sym->attr.if_source != IFSRC_UNKNOWN)
     resolve_formal_arglist (sym);


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

* [Bug fortran/50405] allocation LOOP or SIGSEGV
  2011-09-15  8:30 [Bug fortran/50405] New: allocation LOOP or SIGSEGV zeccav at gmail dot com
  2011-09-15 13:51 ` [Bug fortran/50405] " Joost.VandeVondele at pci dot uzh.ch
  2013-05-12 18:36 ` bdavis at gcc dot gnu.org
@ 2013-05-27 14:17 ` burnus at gcc dot gnu.org
  2013-05-27 14:18 ` burnus at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-05-27 14:17 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

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

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Author: burnus
Date: Mon May 27 14:16:36 2013
New Revision: 199358

URL: http://gcc.gnu.org/viewcvs?rev=199358&root=gcc&view=rev
Log:
2013-05-27  Bud Davis  <jmdavis@link.com>

        PR fortran/50405
        * resolve.c (resolve_formal_arglist): Detect error when an
        * argument
        has the same name as the function.

2013-05-27  Bud Davis  <jmdavis@link.com>

        PR fortran/50405
        * gfortran.dg/stfunc_8.f90: New.


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


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

* [Bug fortran/50405] allocation LOOP or SIGSEGV
  2011-09-15  8:30 [Bug fortran/50405] New: allocation LOOP or SIGSEGV zeccav at gmail dot com
                   ` (2 preceding siblings ...)
  2013-05-27 14:17 ` burnus at gcc dot gnu.org
@ 2013-05-27 14:18 ` burnus at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-05-27 14:18 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

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

--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
FIXED on the trunk (for GCC 4.9).

Thanks for the report!


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

end of thread, other threads:[~2013-05-27 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-15  8:30 [Bug fortran/50405] New: allocation LOOP or SIGSEGV zeccav at gmail dot com
2011-09-15 13:51 ` [Bug fortran/50405] " Joost.VandeVondele at pci dot uzh.ch
2013-05-12 18:36 ` bdavis at gcc dot gnu.org
2013-05-27 14:17 ` burnus at gcc dot gnu.org
2013-05-27 14:18 ` burnus at gcc dot gnu.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).