public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/102312] New: [12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558
@ 2021-09-13 17:27 gscfq@t-online.de
2021-09-14 6:55 ` [Bug fortran/102312] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2021-09-13 17:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102312
Bug ID: 102312
Summary: [12 Regression] ICE in gfc_get_dtype_rank_type, at
fortran/trans-types.c:1558
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Changed between 20210530 and 20210606 :
$ cat z1.f90
program p
print *, f(null())
contains
integer function f(x) bind(c)
use iso_c_binding
integer(kind=c_int), pointer, intent(in) :: x(..)
f = 0
end
end
$ cat z3.f90
recursive function f(x) result(z) bind(c)
use iso_c_binding
integer(kind=c_int), pointer, intent(in) :: x(..)
real :: z
z = f(null())
end
$ gfortran-11 -c z1.f90
$
$ gfortran-12-20210905 -c z1.f90
z1.f90:2:21:
2 | print *, f(null())
| 1
internal compiler error: in gfc_get_dtype_rank_type, at
fortran/trans-types.c:1558
0x89872f gfc_get_dtype_rank_type(int, tree_node*)
../../gcc/fortran/trans-types.c:1558
0x83f65a gfc_conv_scalar_to_descriptor(gfc_se*, tree_node*, symbol_attribute)
../../gcc/fortran/trans-expr.c:126
0x849ae8 gfc_conv_gfc_desc_to_cfi_desc
../../gcc/fortran/trans-expr.c:5577
0x84d9a7 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*,
gfc_expr*, vec<tree_node*, va_gc, vl_embed>*)
../../gcc/fortran/trans-expr.c:6009
0x8445ea gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:9020
0x84b402 gfc_conv_expr_reference(gfc_se*, gfc_expr*, bool)
../../gcc/fortran/trans-expr.c:9166
0x875597 gfc_trans_transfer(gfc_code*)
../../gcc/fortran/trans-io.c:2582
0x816527 trans_code
../../gcc/fortran/trans.c:2138
0x87307e build_dt
../../gcc/fortran/trans-io.c:2026
0x816507 trans_code
../../gcc/fortran/trans.c:2110
0x83cb64 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6918
0x7c2ee6 translate_all_program_units
../../gcc/fortran/parse.c:6569
0x7c2ee6 gfc_parse_file()
../../gcc/fortran/parse.c:6838
0x80f57f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:216
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/102312] [12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558
2021-09-13 17:27 [Bug fortran/102312] New: [12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 gscfq@t-online.de
@ 2021-09-14 6:55 ` rguenth at gcc dot gnu.org
2021-09-14 7:23 ` [Bug fortran/102312] [9/10/11/12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 since r9-5424-g92f3a180aaf6f3cd marxin at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-09-14 6:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102312
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
Priority|P3 |P4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/102312] [9/10/11/12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 since r9-5424-g92f3a180aaf6f3cd
2021-09-13 17:27 [Bug fortran/102312] New: [12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 gscfq@t-online.de
2021-09-14 6:55 ` [Bug fortran/102312] " rguenth at gcc dot gnu.org
@ 2021-09-14 7:23 ` marxin at gcc dot gnu.org
2022-03-31 19:13 ` [Bug fortran/102312] [9/10/11 " anlauf at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-14 7:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102312
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
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2021-09-14
Summary|[12 Regression] ICE in |[9/10/11/12 Regression] ICE
|gfc_get_dtype_rank_type, at |in gfc_get_dtype_rank_type,
|fortran/trans-types.c:1558 |at
| |fortran/trans-types.c:1558
| |since
| |r9-5424-g92f3a180aaf6f3cd
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r9-5424-g92f3a180aaf6f3cd.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/102312] [9/10/11 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 since r9-5424-g92f3a180aaf6f3cd
2021-09-13 17:27 [Bug fortran/102312] New: [12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 gscfq@t-online.de
2021-09-14 6:55 ` [Bug fortran/102312] " rguenth at gcc dot gnu.org
2021-09-14 7:23 ` [Bug fortran/102312] [9/10/11/12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 since r9-5424-g92f3a180aaf6f3cd marxin at gcc dot gnu.org
@ 2022-03-31 19:13 ` anlauf at gcc dot gnu.org
2022-05-06 8:31 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-03-31 19:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102312
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |12.0
Summary|[9/10/11/12 Regression] ICE |[9/10/11 Regression] ICE in
|in gfc_get_dtype_rank_type, |gfc_get_dtype_rank_type, at
|at |fortran/trans-types.c:1558
|fortran/trans-types.c:1558 |since
|since |r9-5424-g92f3a180aaf6f3cd
|r9-5424-g92f3a180aaf6f3cd |
--- Comment #2 from anlauf at gcc dot gnu.org ---
Works for me on mainline (gcc-12).
Example z1 prints 0.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/102312] [9/10/11 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 since r9-5424-g92f3a180aaf6f3cd
2021-09-13 17:27 [Bug fortran/102312] New: [12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 gscfq@t-online.de
` (2 preceding siblings ...)
2022-03-31 19:13 ` [Bug fortran/102312] [9/10/11 " anlauf at gcc dot gnu.org
@ 2022-05-06 8:31 ` jakub at gcc dot gnu.org
2022-09-30 21:08 ` [Bug fortran/102312] [10/11 " anlauf at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-05-06 8:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102312
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|12.0 |12.2
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 12.1 is being released, retargeting bugs to GCC 12.2.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/102312] [10/11 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 since r9-5424-g92f3a180aaf6f3cd
2021-09-13 17:27 [Bug fortran/102312] New: [12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 gscfq@t-online.de
` (3 preceding siblings ...)
2022-05-06 8:31 ` jakub at gcc dot gnu.org
@ 2022-09-30 21:08 ` anlauf at gcc dot gnu.org
2023-05-08 12:22 ` rguenth at gcc dot gnu.org
2023-05-08 19:25 ` anlauf at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-09-30 21:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102312
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
CC| |anlauf at gcc dot gnu.org
--- Comment #5 from anlauf at gcc dot gnu.org ---
Both testcases work for me on current mainline.
Do we know what fixed it?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/102312] [10/11 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 since r9-5424-g92f3a180aaf6f3cd
2021-09-13 17:27 [Bug fortran/102312] New: [12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 gscfq@t-online.de
` (4 preceding siblings ...)
2022-09-30 21:08 ` [Bug fortran/102312] [10/11 " anlauf at gcc dot gnu.org
@ 2023-05-08 12:22 ` rguenth at gcc dot gnu.org
2023-05-08 19:25 ` anlauf at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-08 12:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102312
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|12.3 |12.4
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 12.3 is being released, retargeting bugs to GCC 12.4.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/102312] [10/11 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 since r9-5424-g92f3a180aaf6f3cd
2021-09-13 17:27 [Bug fortran/102312] New: [12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 gscfq@t-online.de
` (5 preceding siblings ...)
2023-05-08 12:22 ` rguenth at gcc dot gnu.org
@ 2023-05-08 19:25 ` anlauf at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-05-08 19:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102312
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |10.4.1, 11.3.0
Status|WAITING |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from anlauf at gcc dot gnu.org ---
Works for me on all currently open branches, see known-to-work. Closing.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-05-08 19:25 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13 17:27 [Bug fortran/102312] New: [12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 gscfq@t-online.de
2021-09-14 6:55 ` [Bug fortran/102312] " rguenth at gcc dot gnu.org
2021-09-14 7:23 ` [Bug fortran/102312] [9/10/11/12 Regression] ICE in gfc_get_dtype_rank_type, at fortran/trans-types.c:1558 since r9-5424-g92f3a180aaf6f3cd marxin at gcc dot gnu.org
2022-03-31 19:13 ` [Bug fortran/102312] [9/10/11 " anlauf at gcc dot gnu.org
2022-05-06 8:31 ` jakub at gcc dot gnu.org
2022-09-30 21:08 ` [Bug fortran/102312] [10/11 " anlauf at gcc dot gnu.org
2023-05-08 12:22 ` rguenth at gcc dot gnu.org
2023-05-08 19:25 ` anlauf 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).