public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/100156] New: ICE in gfc_trans_array_cobounds, at fortran/trans-array.c:6257
@ 2021-04-20 17:41 gscfq@t-online.de
  2021-04-21  6:21 ` [Bug fortran/100156] " marxin at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: gscfq@t-online.de @ 2021-04-20 17:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100156

            Bug ID: 100156
           Summary: ICE in gfc_trans_array_cobounds, at
                    fortran/trans-array.c:6257
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

With option -fcoarray=single, affects versions down to at least r5 :
(compiles with -fcoarray=lib)
(compiles always without attribute volatile)


$ cat z1.f90
program p
   integer, volatile :: a = 1
   integer, volatile :: b[*] = 1
   if (a /= b) stop
end


$ gfortran-11-20210418 -c z1.f90 -fcoarray=lib
$
$ gfortran-11-20210418 -c z1.f90 -fcoarray=single
z1.f90:5:3:

    5 | end
      |   1
internal compiler error: Segmentation fault
0xc0b22f crash_signal
        ../../gcc/toplev.c:327
0x7425b1 gfc_trans_array_cobounds(tree_node*, stmtblock_t*, gfc_symbol const*)
        ../../gcc/fortran/trans-array.c:6257
0x75e271 gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*)
        ../../gcc/fortran/trans-decl.c:4858
0x75fe22 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6988
0x6e66b6 translate_all_program_units
        ../../gcc/fortran/parse.c:6351
0x6e66b6 gfc_parse_file()
        ../../gcc/fortran/parse.c:6620
0x7329cf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

* [Bug fortran/100156] ICE in gfc_trans_array_cobounds, at fortran/trans-array.c:6257
  2021-04-20 17:41 [Bug fortran/100156] New: ICE in gfc_trans_array_cobounds, at fortran/trans-array.c:6257 gscfq@t-online.de
@ 2021-04-21  6:21 ` marxin at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-04-21  6:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100156

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-04-21
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Fails also with GCC 4.8.0.

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

end of thread, other threads:[~2021-04-21  6:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20 17:41 [Bug fortran/100156] New: ICE in gfc_trans_array_cobounds, at fortran/trans-array.c:6257 gscfq@t-online.de
2021-04-21  6:21 ` [Bug fortran/100156] " marxin 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).