public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882
@ 2021-12-13 19:55 gscfq@t-online.de
2021-12-14 10:10 ` [Bug fortran/103694] [12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536 marxin at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: gscfq@t-online.de @ 2021-12-13 19:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
Bug ID: 103694
Summary: [11/12 Regression] ICE in gfc_conv_expr_op, at
fortran/trans-expr.c:3882
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 20210926 and 20211003 :
$ cat z1.f90
subroutine s
type t
integer :: a(2)
end type
type(t) :: x((0.)/0)
integer :: n = size(x(1)%a)
end
$ gfortran-12-20210926 -c z1.f90
z1.f90:5:17:
5 | type(t) :: x((0.)/0)
| 1
Error: Division by zero at (1)
$ gfortran-12-20211212 -c z1.f90
z1.f90:5:23:
5 | type(t) :: x((0.)/0)
| 1
internal compiler error: Segmentation fault
0xd6b77f crash_signal
../../gcc/toplev.c:322
0x883f98 gfc_conv_expr_op
../../gcc/fortran/trans-expr.c:3882
0x883f98 gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:9390
0x886b63 gfc_conv_expr_val(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:9447
0x886cb0 gfc_conv_expr_type(gfc_se*, gfc_expr*, tree_node*)
../../gcc/fortran/trans-expr.c:9461
0x85c1eb gfc_trans_array_bounds(tree_node*, gfc_symbol*, tree_node**,
stmtblock_t*)
../../gcc/fortran/trans-array.c:6461
0x85c412 gfc_trans_auto_array_allocation(tree_node*, gfc_symbol*,
gfc_wrapped_block*)
../../gcc/fortran/trans-array.c:6570
0x87966e gfc_trans_deferred_vars(gfc_symbol*, gfc_wrapped_block*)
../../gcc/fortran/trans-decl.c:4787
0x87c235 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:7746
0x7ff10e translate_all_program_units
../../gcc/fortran/parse.c:6651
0x7ff10e gfc_parse_file()
../../gcc/fortran/parse.c:6938
0x84bfcf gfc_be_parse_file
../../gcc/fortran/f95-lang.c:216
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/103694] [12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
@ 2021-12-14 10:10 ` marxin at gcc dot gnu.org
2021-12-15 20:07 ` anlauf at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-12-14 10:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Summary|[11/12 Regression] ICE in |[12 Regression] ICE in
|gfc_conv_expr_op, at |gfc_conv_expr_op, at
|fortran/trans-expr.c:3882 |fortran/trans-expr.c:3882
| |since
| |r12-3993-gb19bbfb148250536
Last reconfirmed| |2021-12-14
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-3993-gb19bbfb148250536.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/103694] [12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
2021-12-14 10:10 ` [Bug fortran/103694] [12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536 marxin at gcc dot gnu.org
@ 2021-12-15 20:07 ` anlauf at gcc dot gnu.org
2021-12-16 8:55 ` gscfq@t-online.de
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-12-15 20:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
--- Comment #2 from anlauf at gcc dot gnu.org ---
(In reply to Martin Liška from comment #1)
> Started with r12-3993-gb19bbfb148250536.
Are you sure about that?
All releases >= 7 ICE for me.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/103694] [12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
2021-12-14 10:10 ` [Bug fortran/103694] [12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536 marxin at gcc dot gnu.org
2021-12-15 20:07 ` anlauf at gcc dot gnu.org
@ 2021-12-16 8:55 ` gscfq@t-online.de
2022-01-04 11:08 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gscfq@t-online.de @ 2021-12-16 8:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
--- Comment #3 from G. Steinmetz <gscfq@t-online.de> ---
On my environment(s) a preceding ICE (see backtrace) disappeared
for r10 between 20200412 (ICE) and 20200419 (Error) :
$ gfortran-10-20200412 -c z1.f90
z1.f90:5:17:
5 | type(t) :: x((0.)/0)
| 1
Error: Division by zero at (1)
f951: internal compiler error: Segmentation fault
0xd4325f crash_signal
../../gcc/toplev.c:328
0x68d4b0 gfc_numeric_ts(gfc_typespec*)
../../gcc/fortran/expr.c:891
0x6f90c0 resolve_operator
../../gcc/fortran/resolve.c:4029
0x6f5997 gfc_resolve_expr(gfc_expr*)
../../gcc/fortran/resolve.c:7022
0x659054 resolve_array_bound
../../gcc/fortran/array.c:378
0x659cc6 gfc_resolve_array_spec(gfc_array_spec*, int)
../../gcc/fortran/array.c:422
0x701d03 resolve_symbol
../../gcc/fortran/resolve.c:15872
0x71f282 do_traverse_symtree
../../gcc/fortran/symbol.c:4147
0x704724 resolve_types
../../gcc/fortran/resolve.c:17161
0x6ffecc gfc_resolve(gfc_namespace*)
../../gcc/fortran/resolve.c:17276
0x6e809c resolve_all_program_units
../../gcc/fortran/parse.c:6245
0x6e809c gfc_parse_file()
../../gcc/fortran/parse.c:6492
0x7348ef gfc_be_parse_file
../../gcc/fortran/f95-lang.c:210
$ gfortran-10-20200419 -c z1.f90
z1.f90:5:17:
5 | type(t) :: x((0.)/0)
| 1
Error: Division by zero at (1)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/103694] [12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
` (2 preceding siblings ...)
2021-12-16 8:55 ` gscfq@t-online.de
@ 2022-01-04 11:08 ` rguenth at gcc dot gnu.org
2022-05-06 8:32 ` [Bug fortran/103694] [12/13 " jakub at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-04 11:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
Priority|P3 |P4
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/103694] [12/13 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
` (3 preceding siblings ...)
2022-01-04 11:08 ` rguenth at gcc dot gnu.org
@ 2022-05-06 8:32 ` jakub at gcc dot gnu.org
2022-08-24 18:18 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-05-06 8:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|12.0 |12.2
--- Comment #4 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] 11+ messages in thread
* [Bug fortran/103694] [12/13 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
` (4 preceding siblings ...)
2022-05-06 8:32 ` [Bug fortran/103694] [12/13 " jakub at gcc dot gnu.org
@ 2022-08-24 18:18 ` cvs-commit at gcc dot gnu.org
2022-08-26 20:05 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-08-24 18:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:55d8c5409325001c89c35c3d04d425dec9127146
commit r13-2177-g55d8c5409325001c89c35c3d04d425dec9127146
Author: Harald Anlauf <anlauf@gmx.de>
Date: Tue Aug 23 22:16:14 2022 +0200
Fortran: improve error recovery while simplifying size of bad array
[PR103694]
gcc/fortran/ChangeLog:
PR fortran/103694
* simplify.cc (simplify_size): The size expression of an array
cannot
be simplified if an error occurs while resolving the array spec.
gcc/testsuite/ChangeLog:
PR fortran/103694
* gfortran.dg/pr103694.f90: New test.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/103694] [12/13 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
` (5 preceding siblings ...)
2022-08-24 18:18 ` cvs-commit at gcc dot gnu.org
@ 2022-08-26 20:05 ` cvs-commit at gcc dot gnu.org
2022-08-26 20:07 ` anlauf at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-08-26 20:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:1f682c96048456379729d495b41551a00eac5a3f
commit r12-8716-g1f682c96048456379729d495b41551a00eac5a3f
Author: Harald Anlauf <anlauf@gmx.de>
Date: Tue Aug 23 22:16:14 2022 +0200
Fortran: improve error recovery while simplifying size of bad array
[PR103694]
gcc/fortran/ChangeLog:
PR fortran/103694
* simplify.cc (simplify_size): The size expression of an array
cannot
be simplified if an error occurs while resolving the array spec.
gcc/testsuite/ChangeLog:
PR fortran/103694
* gfortran.dg/pr103694.f90: New test.
(cherry picked from commit 55d8c5409325001c89c35c3d04d425dec9127146)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/103694] [12/13 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
` (6 preceding siblings ...)
2022-08-26 20:05 ` cvs-commit at gcc dot gnu.org
@ 2022-08-26 20:07 ` anlauf at gcc dot gnu.org
2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-08-26 20:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #10 from anlauf at gcc dot gnu.org ---
Fixed on mainline for gcc-13 and on 12-branch.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/103694] [12/13 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
` (7 preceding siblings ...)
2022-08-26 20:07 ` anlauf at gcc dot gnu.org
@ 2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-30 20:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:6a552015b9c4b2e029a47f44f1866578e3af5bd0
commit r11-10281-g6a552015b9c4b2e029a47f44f1866578e3af5bd0
Author: Harald Anlauf <anlauf@gmx.de>
Date: Tue Aug 23 22:16:14 2022 +0200
Fortran: improve error recovery while simplifying size of bad array
[PR103694]
gcc/fortran/ChangeLog:
PR fortran/103694
* simplify.c (simplify_size): The size expression of an array
cannot
be simplified if an error occurs while resolving the array spec.
gcc/testsuite/ChangeLog:
PR fortran/103694
* gfortran.dg/pr103694.f90: New test.
(cherry picked from commit 55d8c5409325001c89c35c3d04d425dec9127146)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/103694] [12/13 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
` (8 preceding siblings ...)
2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
@ 2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-30 20:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103694
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:c59d1e73a617277fea13e785bb0e3f8c1df6ffc4
commit r10-11010-gc59d1e73a617277fea13e785bb0e3f8c1df6ffc4
Author: Harald Anlauf <anlauf@gmx.de>
Date: Tue Aug 23 22:16:14 2022 +0200
Fortran: improve error recovery while simplifying size of bad array
[PR103694]
gcc/fortran/ChangeLog:
PR fortran/103694
* simplify.c (simplify_size): The size expression of an array
cannot
be simplified if an error occurs while resolving the array spec.
gcc/testsuite/ChangeLog:
PR fortran/103694
* gfortran.dg/pr103694.f90: New test.
(cherry picked from commit 55d8c5409325001c89c35c3d04d425dec9127146)
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-09-30 20:33 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 19:55 [Bug fortran/103694] New: [11/12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 gscfq@t-online.de
2021-12-14 10:10 ` [Bug fortran/103694] [12 Regression] ICE in gfc_conv_expr_op, at fortran/trans-expr.c:3882 since r12-3993-gb19bbfb148250536 marxin at gcc dot gnu.org
2021-12-15 20:07 ` anlauf at gcc dot gnu.org
2021-12-16 8:55 ` gscfq@t-online.de
2022-01-04 11:08 ` rguenth at gcc dot gnu.org
2022-05-06 8:32 ` [Bug fortran/103694] [12/13 " jakub at gcc dot gnu.org
2022-08-24 18:18 ` cvs-commit at gcc dot gnu.org
2022-08-26 20:05 ` cvs-commit at gcc dot gnu.org
2022-08-26 20:07 ` anlauf at gcc dot gnu.org
2022-09-30 20:33 ` cvs-commit at gcc dot gnu.org
2022-09-30 20:33 ` cvs-commit 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).