public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15182] New: gfortran ICE: gfc_get_symbol_decl: Assertion `((decl)->common.static_flag)' failed
@ 2004-04-27 22:50 olchansk at panix dot com
  2004-04-27 22:53 ` [Bug fortran/15182] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: olchansk at panix dot com @ 2004-04-27 22:50 UTC (permalink / raw)
  To: gcc-bugs

Attached code produces an ICE. Absoft and ICC are fine.

/* in file bar.f90 */
module bar
  implicit none
  character(len=10), public:: bartest = ''
end module bar

/* in file test_gfc_get_symbol_decl.f90 */
module foo
  use bar
  implicit none
  character(len=10), public:: localtest = ''
contains
  subroutine foobar
    localtest = 'aaa'

    ! following line produces ICE:
    ! f951: ../../gcc/gcc/fortran/trans-decl.c:818: gfc_get_symbol_decl:
Assertion `((decl)->common.static_flag)' failed.

    bartest   = 'aaa'

  end subroutine foobar
end module foo

When compiling:
[olchansk@dork gfortran_test]$ make bar.o
/triumfcs/trshare/olchansk/gcc-tree-ssa/install/bin/gfortran -x f95 -c  -o bar.o
-O2 -g -Wall -Waliasing -Wline-truncation -Wsurprising -Wunused-labels -fPIC
-ffixed-line-length-132 bar.f90
[olchansk@dork gfortran_test]$ make test_gfc_get_symbol_decl.o
/triumfcs/trshare/olchansk/gcc-tree-ssa/install/bin/gfortran -x f95 -c  -o
test_gfc_get_symbol_decl.o -O2 -g -Wall -Waliasing -Wline-truncation
-Wsurprising -Wunused-labels -fPIC -ffixed-line-length-132
test_gfc_get_symbol_decl.f90
f951: ../../gcc/gcc/fortran/trans-decl.c:818: gfc_get_symbol_decl: Assertion
`((decl)->common.static_flag)' failed.
test_gfc_get_symbol_decl.f90: In function `foobar':
test_gfc_get_symbol_decl.f90:12: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [test_gfc_get_symbol_decl.o] Error 1

K.O.

-- 
           Summary: gfortran ICE: gfc_get_symbol_decl: Assertion `((decl)-
                    >common.static_flag)' failed
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: olchansk at panix dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


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

* [Bug fortran/15182] gfortran ICE: gfc_get_symbol_decl: Assertion `((decl)->common.static_flag)' failed
  2004-04-27 22:50 [Bug fortran/15182] New: gfortran ICE: gfc_get_symbol_decl: Assertion `((decl)->common.static_flag)' failed olchansk at panix dot com
@ 2004-04-27 22:53 ` pinskia at gcc dot gnu dot org
  2004-05-26 23:34 ` [Bug fortran/15182] [gfortran] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-27 22:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-27 22:48 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-27 22:48:59
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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

* [Bug fortran/15182] [gfortran] ICE: gfc_get_symbol_decl: Assertion `((decl)->common.static_flag)' failed
  2004-04-27 22:50 [Bug fortran/15182] New: gfortran ICE: gfc_get_symbol_decl: Assertion `((decl)->common.static_flag)' failed olchansk at panix dot com
  2004-04-27 22:53 ` [Bug fortran/15182] " pinskia at gcc dot gnu dot org
@ 2004-05-26 23:34 ` pinskia at gcc dot gnu dot org
  2004-07-11 20:58 ` [Bug fortran/15182] " olchansk at panix dot com
  2004-07-12  4:31 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-26 23:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.5.0                       |---


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


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

* [Bug fortran/15182] ICE: gfc_get_symbol_decl: Assertion `((decl)->common.static_flag)' failed
  2004-04-27 22:50 [Bug fortran/15182] New: gfortran ICE: gfc_get_symbol_decl: Assertion `((decl)->common.static_flag)' failed olchansk at panix dot com
  2004-04-27 22:53 ` [Bug fortran/15182] " pinskia at gcc dot gnu dot org
  2004-05-26 23:34 ` [Bug fortran/15182] [gfortran] " pinskia at gcc dot gnu dot org
@ 2004-07-11 20:58 ` olchansk at panix dot com
  2004-07-12  4:31 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: olchansk at panix dot com @ 2004-07-11 20:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From olchansk at panix dot com  2004-07-11 20:58 -------
This ICE appears to be gone in "gcc version 3.5.0 20040710 (experimental)"
K.O.


-- 


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


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

* [Bug fortran/15182] ICE: gfc_get_symbol_decl: Assertion `((decl)->common.static_flag)' failed
  2004-04-27 22:50 [Bug fortran/15182] New: gfortran ICE: gfc_get_symbol_decl: Assertion `((decl)->common.static_flag)' failed olchansk at panix dot com
                   ` (2 preceding siblings ...)
  2004-07-11 20:58 ` [Bug fortran/15182] " olchansk at panix dot com
@ 2004-07-12  4:31 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-12  4:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-12 04:31 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


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


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

end of thread, other threads:[~2004-07-12  4:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-27 22:50 [Bug fortran/15182] New: gfortran ICE: gfc_get_symbol_decl: Assertion `((decl)->common.static_flag)' failed olchansk at panix dot com
2004-04-27 22:53 ` [Bug fortran/15182] " pinskia at gcc dot gnu dot org
2004-05-26 23:34 ` [Bug fortran/15182] [gfortran] " pinskia at gcc dot gnu dot org
2004-07-11 20:58 ` [Bug fortran/15182] " olchansk at panix dot com
2004-07-12  4:31 ` 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).