public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25024]  New: ICE with external declaration inside same procedure
@ 2005-11-24 18:30 jb at gcc dot gnu dot org
  2005-11-25 15:13 ` [Bug fortran/25024] " eedelman at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jb at gcc dot gnu dot org @ 2005-11-24 18:30 UTC (permalink / raw)
  To: gcc-bugs

The following simple procedure causes an ICE:

      subroutine   A()
      EXTERNAL A
      END

Error message with compiler "gcc version 4.2.0 20051124 (experimental)" is:

crash2.f:0: internal compiler error: in build_function_decl, at
fortran/trans-decl.c:1114

With compiler "gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)"
the message is essentially the same:

crash2.f:0: internal compiler error: in build_function_decl, at
fortran/trans-decl.c:1026


-- 
           Summary: ICE with external declaration inside same procedure
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jb at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/25024] ICE with external declaration inside same procedure
  2005-11-24 18:30 [Bug fortran/25024] New: ICE with external declaration inside same procedure jb at gcc dot gnu dot org
@ 2005-11-25 15:13 ` eedelman at gcc dot gnu dot org
  2006-01-18 18:55 ` pault at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: eedelman at gcc dot gnu dot org @ 2005-11-25 15:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from eedelman at gcc dot gnu dot org  2005-11-25 15:13 -------
Confirmed.


-- 

eedelman 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-25 15:13:20
               date|                            |


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


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

* [Bug fortran/25024] ICE with external declaration inside same procedure
  2005-11-24 18:30 [Bug fortran/25024] New: ICE with external declaration inside same procedure jb at gcc dot gnu dot org
  2005-11-25 15:13 ` [Bug fortran/25024] " eedelman at gcc dot gnu dot org
@ 2006-01-18 18:55 ` pault at gcc dot gnu dot org
  2006-01-18 18:56 ` pault at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-01-18 18:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pault at gcc dot gnu dot org  2006-01-18 18:55 -------
Subject: Bug 25024

Author: pault
Date: Wed Jan 18 18:55:01 2006
New Revision: 109899

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

        PR fortran/20869
        PR fortran/20875
        PR fortran/25024
        * symbol.c (check_conflict): Add pointer valued elemental
        functions and internal procedures with the external attribute
        to the list of conflicts.
        (gfc_add_attribute): New catch-all function to perform the
        checking of symbol attributes for attribute declaration
        statements.
        * decl.c (attr_decl1): Call gfc_add_attribute for each of -
        (gfc_match_external, gfc_match_intent, gfc_match_intrinsic,
        gfc_match_pointer, gfc_match_dimension, gfc_match_target):
        Remove spurious calls to checks in symbol.c.  Set the
        attribute directly and use the call to attr_decl() for
        checking.
        * gfortran.h:  Add prototype for gfc_add_attribute.

        PR fortran/25785
        * resolve.c (resolve_function): Exclude PRESENT from assumed size
        argument checking. Replace strcmp's with comparisons with generic
        codes.

2006-01-18  Paul Thomas  <pault@gcc.gnu.org>
            Steven G. Kargl  <kargls@comcast.net>

        PR fortran/20869
        * gfortran.dg/intrinsic_external_1.f90: New test.

        PR fortran/20875.
        * gfortran.dg/elemental_pointer_1.f90: New test.

        PR fortran/25024
        * gfortran.dg/external_procedures_1.f90: New test.

        PR fortran/25785
        gfortran.dg/assumed_present.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/assumed_present.f90
    trunk/gcc/testsuite/gfortran.dg/elemental_pointer_1.f90
    trunk/gcc/testsuite/gfortran.dg/external_procedures_1.f90
    trunk/gcc/testsuite/gfortran.dg/intrinsic_external_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/25024] ICE with external declaration inside same procedure
  2005-11-24 18:30 [Bug fortran/25024] New: ICE with external declaration inside same procedure jb at gcc dot gnu dot org
  2005-11-25 15:13 ` [Bug fortran/25024] " eedelman at gcc dot gnu dot org
  2006-01-18 18:55 ` pault at gcc dot gnu dot org
@ 2006-01-18 18:56 ` pault at gcc dot gnu dot org
  2006-01-18 18:59 ` pault at gcc dot gnu dot org
  2006-01-23 16:34 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-01-18 18:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pault at gcc dot gnu dot org  2006-01-18 18:56 -------
Subject: Bug 25024

Author: pault
Date: Wed Jan 18 18:56:43 2006
New Revision: 109900

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

        PR fortran/20869
        PR fortran/20875
        PR fortran/25024
        * symbol.c (check_conflict): Add pointer valued elemental
        functions and internal procedures with the external attribute
        to the list of conflicts.
        (gfc_add_attribute): New catch-all function to perform the
        checking of symbol attributes for attribute declaration
        statements.
        * decl.c (attr_decl1): Call gfc_add_attribute for each of -
        (gfc_match_external, gfc_match_intent, gfc_match_intrinsic,
        gfc_match_pointer, gfc_match_dimension, gfc_match_target):
        Remove spurious calls to checks in symbol.c.  Set the
        attribute directly and use the call to attr_decl() for
        checking.
        * gfortran.h:  Add prototype for gfc_add_attribute.

        PR fortran/25785
        * resolve.c (resolve_function): Exclude PRESENT from assumed size
        argument checking. Replace strcmp's with comparisons with generic
        codes.

2006-01-18  Paul Thomas  <pault@gcc.gnu.org>
            Steven G. Kargl  <kargls@comcast.net>

        PR fortran/20869
        * gfortran.dg/intrinsic_external_1.f90: New test.

        PR fortran/20875.
        * gfortran.dg/elemental_pointer_1.f90: New test.

        PR fortran/25024
        * gfortran.dg/external_procedures_1.f90: New test.

        PR fortran/25785
        gfortran.dg/assumed_present.f90: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/assumed_present.f90
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/elemental_pointer_1.f90
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/external_procedures_1.f90
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/intrinsic_external_1.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/decl.c
    branches/gcc-4_1-branch/gcc/fortran/gfortran.h
    branches/gcc-4_1-branch/gcc/fortran/resolve.c
    branches/gcc-4_1-branch/gcc/fortran/symbol.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug fortran/25024] ICE with external declaration inside same procedure
  2005-11-24 18:30 [Bug fortran/25024] New: ICE with external declaration inside same procedure jb at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-01-18 18:56 ` pault at gcc dot gnu dot org
@ 2006-01-18 18:59 ` pault at gcc dot gnu dot org
  2006-01-23 16:34 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-01-18 18:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pault at gcc dot gnu dot org  2006-01-18 18:59 -------
Fixed on trunk and 4.1

Paul


-- 

pault at gcc dot gnu dot org changed:

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


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


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

* [Bug fortran/25024] ICE with external declaration inside same procedure
  2005-11-24 18:30 [Bug fortran/25024] New: ICE with external declaration inside same procedure jb at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-01-18 18:59 ` pault at gcc dot gnu dot org
@ 2006-01-23 16:34 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-23 16:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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


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

end of thread, other threads:[~2006-01-23 16:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-24 18:30 [Bug fortran/25024] New: ICE with external declaration inside same procedure jb at gcc dot gnu dot org
2005-11-25 15:13 ` [Bug fortran/25024] " eedelman at gcc dot gnu dot org
2006-01-18 18:55 ` pault at gcc dot gnu dot org
2006-01-18 18:56 ` pault at gcc dot gnu dot org
2006-01-18 18:59 ` pault at gcc dot gnu dot org
2006-01-23 16:34 ` pinskia 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).