public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/102619] New: [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215
@ 2021-10-05 18:32 gscfq@t-online.de
2021-10-05 18:33 ` [Bug fortran/102619] " gscfq@t-online.de
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2021-10-05 18:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102619
Bug ID: 102619
Summary: [10/11/12 Regression] ICE in
gfc_conv_descriptor_dtype, at
fortran/trans-array.c:215
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: ---
Started with r9, changed between 20190310 and 20190331 :
$ cat z1.f90
program p
contains
function f(x) result(z)
real :: x(:)
real, allocatable :: z(:)
z = g(x)
end
function g(x)
real :: x(..)
real :: g(product(shape(x)))
end
end
$ gfortran-9-20190310 -c z1.f90
$
$ gfortran-12-20211003 -c z1.f90
z1.f90:6:14:
6 | z = g(x)
| 1
internal compiler error: in gfc_get_descriptor_field, at
fortran/trans-array.c:140
0x84b7e0 gfc_get_descriptor_field
../../gcc/fortran/trans-array.c:140
0x84ca2f gfc_conv_descriptor_dtype(tree_node*)
../../gcc/fortran/trans-array.c:215
0x84cab5 gfc_conv_descriptor_rank(tree_node*)
../../gcc/fortran/trans-array.c:249
0x8a3ac1 gfc_conv_intrinsic_shape
../../gcc/fortran/trans-intrinsic.c:6742
0x8a3ac1 gfc_conv_intrinsic_function(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-intrinsic.c:10182
0x87956a gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:9066
0x858440 gfc_add_loop_ss_code
../../gcc/fortran/trans-array.c:3029
0x858ff5 gfc_conv_loop_setup(gfc_loopinfo*, locus*)
../../gcc/fortran/trans-array.c:5293
0x89cae0 gfc_conv_intrinsic_arith
../../gcc/fortran/trans-intrinsic.c:4931
0x8a4cc4 gfc_conv_intrinsic_function(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-intrinsic.c:10694
0x87956a gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:9066
0x87ba1a gfc_apply_interface_mapping(gfc_interface_mapping*, gfc_se*,
gfc_expr*)
../../gcc/fortran/trans-expr.c:4874
0x84da17 gfc_set_loop_bounds_from_array_spec(gfc_interface_mapping*, gfc_se*,
gfc_array_spec*)
../../gcc/fortran/trans-array.c:949
0x886056 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:7140
0x8876dc gfc_trans_arrayfunc_assign
../../gcc/fortran/trans-expr.c:10541
0x88b3b4 gfc_trans_assignment(gfc_expr*, gfc_expr*, bool, bool, bool, bool)
../../gcc/fortran/trans-expr.c:11710
0x84ac37 trans_code
../../gcc/fortran/trans.c:1918
0x871974 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6905
0x871774 gfc_generate_contained_functions
../../gcc/fortran/trans-decl.c:5899
0x871774 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6837
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/102619] [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215
2021-10-05 18:32 [Bug fortran/102619] New: [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 gscfq@t-online.de
@ 2021-10-05 18:33 ` gscfq@t-online.de
2021-10-06 8:40 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2021-10-05 18:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102619
G. Steinmetz <gscfq@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---
While synonym z0.f90 compiles, the other variants don't :
$ cat z0.f90
program p
contains
function f(x) result(z)
real :: x(:)
real, allocatable :: z(:)
z = g(x)
end
function g(x)
real :: x(..)
real :: g(size(x))
end
end
$ cat z2.f90
program p
contains
function f(x) result(z)
real :: x(:)
real, allocatable :: z(:)
z = g(x)
end
function g(x)
real :: x(..)
real :: g(product(ubound(x)-lbound(x)+1))
end
end
$ cat z3.f90
program p
contains
function f(x) result(z)
real :: x(:)
real, allocatable :: z(:)
z = g(x)
end
function g(x)
real :: x(..)
real :: g(product(ubound(x)))
end
end
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/102619] [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215
2021-10-05 18:32 [Bug fortran/102619] New: [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 gscfq@t-online.de
2021-10-05 18:33 ` [Bug fortran/102619] " gscfq@t-online.de
@ 2021-10-06 8:40 ` rguenth at gcc dot gnu.org
2021-10-11 8:24 ` [Bug fortran/102619] [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 since r9-6493-g0e3088806577e805 marxin at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-10-06 8:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102619
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
Target Milestone|--- |10.4
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/102619] [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 since r9-6493-g0e3088806577e805
2021-10-05 18:32 [Bug fortran/102619] New: [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 gscfq@t-online.de
2021-10-05 18:33 ` [Bug fortran/102619] " gscfq@t-online.de
2021-10-06 8:40 ` rguenth at gcc dot gnu.org
@ 2021-10-11 8:24 ` marxin at gcc dot gnu.org
2022-06-28 10:46 ` [Bug fortran/102619] [10/11/12/13 " jakub at gcc dot gnu.org
2023-07-07 10:41 ` [Bug fortran/102619] [11/12/13/14 " rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-11 8:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102619
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Summary|[10/11/12 Regression] ICE |[10/11/12 Regression] ICE
|in |in
|gfc_conv_descriptor_dtype, |gfc_conv_descriptor_dtype,
|at |at
|fortran/trans-array.c:215 |fortran/trans-array.c:215
| |since
| |r9-6493-g0e3088806577e805
Last reconfirmed| |2021-10-11
CC| |marxin at gcc dot gnu.org
Status|UNCONFIRMED |NEW
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started likely with r9-6493-g0e3088806577e805.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/102619] [10/11/12/13 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 since r9-6493-g0e3088806577e805
2021-10-05 18:32 [Bug fortran/102619] New: [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 gscfq@t-online.de
` (2 preceding siblings ...)
2021-10-11 8:24 ` [Bug fortran/102619] [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 since r9-6493-g0e3088806577e805 marxin at gcc dot gnu.org
@ 2022-06-28 10:46 ` jakub at gcc dot gnu.org
2023-07-07 10:41 ` [Bug fortran/102619] [11/12/13/14 " rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102619
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #3 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] 6+ messages in thread
* [Bug fortran/102619] [11/12/13/14 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 since r9-6493-g0e3088806577e805
2021-10-05 18:32 [Bug fortran/102619] New: [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 gscfq@t-online.de
` (3 preceding siblings ...)
2022-06-28 10:46 ` [Bug fortran/102619] [10/11/12/13 " jakub at gcc dot gnu.org
@ 2023-07-07 10:41 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102619
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |11.5
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-07-07 10:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 18:32 [Bug fortran/102619] New: [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 gscfq@t-online.de
2021-10-05 18:33 ` [Bug fortran/102619] " gscfq@t-online.de
2021-10-06 8:40 ` rguenth at gcc dot gnu.org
2021-10-11 8:24 ` [Bug fortran/102619] [10/11/12 Regression] ICE in gfc_conv_descriptor_dtype, at fortran/trans-array.c:215 since r9-6493-g0e3088806577e805 marxin at gcc dot gnu.org
2022-06-28 10:46 ` [Bug fortran/102619] [10/11/12/13 " jakub at gcc dot gnu.org
2023-07-07 10:41 ` [Bug fortran/102619] [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).