public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/96087] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575
@ 2020-07-06 18:01 gscfq@t-online.de
  2020-07-06 18:01 ` [Bug fortran/96087] " gscfq@t-online.de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2020-07-06 18:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96087
           Summary: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at
                    fortran/trans-decl.c:1575
           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: ---

This changed between 20200308 and 20200412 :


$ cat z1.f90
module m
   interface
      module function f(n) result(z)
         integer, intent(in) :: n
         real :: z(n)
      end
   end interface
contains
   module procedure f
      z = 1
   end procedure
end


$ gfortran-10-20200308 -c z1.f90
$
$ gfortran-11-20200705 -c z1.f90
z1.f90:3:0:

    3 |       module function f(n) result(z)
      |
internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1575
0x72bceb gfc_get_symbol_decl(gfc_symbol*)
        ../../gcc/fortran/trans-decl.c:1575
0x73a4b8 gfc_conv_variable
        ../../gcc/fortran/trans-expr.c:2735
0x7366ca gfc_conv_expr(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.c:8693
0x739523 gfc_conv_expr_val(gfc_se*, gfc_expr*)
        ../../gcc/fortran/trans-expr.c:8738
0x739670 gfc_conv_expr_type(gfc_se*, gfc_expr*, tree_node*)
        ../../gcc/fortran/trans-expr.c:8752
0x712edf gfc_trans_dummy_array_bias(gfc_symbol*, tree_node*,
gfc_wrapped_block*)
        ../../gcc/fortran/trans-array.c:6668
0x72ce1c gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*)
        ../../gcc/fortran/trans-decl.c:4862
0x72f408 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6945
0x709c49 gfc_generate_module_code(gfc_namespace*)
        ../../gcc/fortran/trans.c:2264
0x6b6901 translate_all_program_units
        ../../gcc/fortran/parse.c:6294
0x6b6901 gfc_parse_file()
        ../../gcc/fortran/parse.c:6546
0x70284f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

* [Bug fortran/96087] [9/10/11 Regression] ICE in gfc_get_symbol_decl,  at fortran/trans-decl.c:1575
  2020-07-06 18:01 [Bug fortran/96087] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575 gscfq@t-online.de
@ 2020-07-06 18:01 ` gscfq@t-online.de
  2020-07-07  7:23 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2020-07-06 18:01 UTC (permalink / raw)
  To: gcc-bugs

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

G. Steinmetz <gscfq@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---

This related valid case also ICEs, but down to r6 :


$ cat z2.f90
module m
   interface
      module subroutine f(n, z)
         integer, intent(in) :: n
         real :: z(n)
      end
   end interface
contains
   module procedure f
      z = 1
   end procedure
end

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

* [Bug fortran/96087] [9/10/11 Regression] ICE in gfc_get_symbol_decl,  at fortran/trans-decl.c:1575
  2020-07-06 18:01 [Bug fortran/96087] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575 gscfq@t-online.de
  2020-07-06 18:01 ` [Bug fortran/96087] " gscfq@t-online.de
@ 2020-07-07  7:23 ` rguenth at gcc dot gnu.org
  2020-07-07  8:50 ` marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-07-07  7:23 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
   Target Milestone|---                         |9.4

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

* [Bug fortran/96087] [9/10/11 Regression] ICE in gfc_get_symbol_decl,  at fortran/trans-decl.c:1575
  2020-07-06 18:01 [Bug fortran/96087] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575 gscfq@t-online.de
  2020-07-06 18:01 ` [Bug fortran/96087] " gscfq@t-online.de
  2020-07-07  7:23 ` rguenth at gcc dot gnu.org
@ 2020-07-07  8:50 ` marxin at gcc dot gnu.org
  2020-07-07 17:19 ` gscfq@t-online.de
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-07-07  8:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |pault at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-07-07

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started to ICE with r6-7412-g70112e2a64f7cbed, before that it was rejected:

Error: MODULE PROCEDURE at (1) must be in a generic module interface
pr96087.f90:10:11:

       z = 1
           1
Error: Unexpected assignment statement in CONTAINS section at (1)
pr96087.f90:11:6:

    end procedure
      1
Error: Expecting END MODULE statement at (1)

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

* [Bug fortran/96087] [9/10/11 Regression] ICE in gfc_get_symbol_decl,  at fortran/trans-decl.c:1575
  2020-07-06 18:01 [Bug fortran/96087] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2020-07-07  8:50 ` marxin at gcc dot gnu.org
@ 2020-07-07 17:19 ` gscfq@t-online.de
  2021-06-01  8:18 ` [Bug fortran/96087] [9/10/11/12 " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2020-07-07 17:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from G. Steinmetz <gscfq@t-online.de> ---

Thanks for nailing down the commit for addon comment 1.

But when started the regression/issue from comment 0 ?
gfortran 9.3 does not have the ICE.

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

* [Bug fortran/96087] [9/10/11/12 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575
  2020-07-06 18:01 [Bug fortran/96087] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2020-07-07 17:19 ` gscfq@t-online.de
@ 2021-06-01  8:18 ` rguenth at gcc dot gnu.org
  2022-05-27  9:43 ` [Bug fortran/96087] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01  8:18 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.4                         |9.5

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

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

* [Bug fortran/96087] [10/11/12/13 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575
  2020-07-06 18:01 [Bug fortran/96087] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575 gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2021-06-01  8:18 ` [Bug fortran/96087] [9/10/11/12 " rguenth at gcc dot gnu.org
@ 2022-05-27  9:43 ` rguenth at gcc dot gnu.org
  2022-06-28 10:41 ` jakub at gcc dot gnu.org
  2023-07-07 10:37 ` [Bug fortran/96087] [11/12/13/14 " rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:43 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed

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

* [Bug fortran/96087] [10/11/12/13 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575
  2020-07-06 18:01 [Bug fortran/96087] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575 gscfq@t-online.de
                   ` (5 preceding siblings ...)
  2022-05-27  9:43 ` [Bug fortran/96087] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:41 ` jakub at gcc dot gnu.org
  2023-07-07 10:37 ` [Bug fortran/96087] [11/12/13/14 " rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:41 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug fortran/96087] [11/12/13/14 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575
  2020-07-06 18:01 [Bug fortran/96087] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575 gscfq@t-online.de
                   ` (6 preceding siblings ...)
  2022-06-28 10:41 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:37 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:37 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

end of thread, other threads:[~2023-07-07 10:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 18:01 [Bug fortran/96087] New: [9/10/11 Regression] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1575 gscfq@t-online.de
2020-07-06 18:01 ` [Bug fortran/96087] " gscfq@t-online.de
2020-07-07  7:23 ` rguenth at gcc dot gnu.org
2020-07-07  8:50 ` marxin at gcc dot gnu.org
2020-07-07 17:19 ` gscfq@t-online.de
2021-06-01  8:18 ` [Bug fortran/96087] [9/10/11/12 " rguenth at gcc dot gnu.org
2022-05-27  9:43 ` [Bug fortran/96087] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:41 ` jakub at gcc dot gnu.org
2023-07-07 10:37 ` [Bug fortran/96087] [11/12/13/14 " rguenth 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).