public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/100196] New: [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364
@ 2021-04-21 20:02 gscfq@t-online.de
2021-04-22 7:33 ` [Bug fortran/100196] " rguenth at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: gscfq@t-online.de @ 2021-04-21 20:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100196
Bug ID: 100196
Summary: [9/10/11/12 Regression] ICE in reduce_binary_ca, at
fortran/arith.c:1364
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 r8 (before 20180525) :
$ cat z1.f90
program p
real, parameter :: a(0) = 0
real :: b = 1 + [a]
end
$ cat z5.f90
program p
real, parameter :: a(0) = 0
real, parameter :: b(1) = 1 + [a]
end
$ gfortran-7 -c z5.f90
$
$ gfortran-7 -c z1.f90
z1.f90:3:12:
real :: b = 1 + [a]
1
Error: Incompatible ranks 0 and 1 in assignment at (1)
$ gfortran-11-20210418 -c z1.f90
f951: internal compiler error: Segmentation fault
0xc0b22f crash_signal
../../gcc/toplev.c:327
0x65083f reduce_binary_ca
../../gcc/fortran/arith.c:1364
0x6508d2 reduce_binary_ca
../../gcc/fortran/arith.c:1351
0x650b45 reduce_binary
../../gcc/fortran/arith.c:1434
0x650ddb eval_intrinsic
../../gcc/fortran/arith.c:1612
0x68cfba simplify_intrinsic_op
../../gcc/fortran/expr.c:1184
0x68cfba gfc_simplify_expr(gfc_expr*, int)
../../gcc/fortran/expr.c:2237
0x6f7589 resolve_operator
../../gcc/fortran/resolve.c:4431
0x6f3a6f gfc_resolve_expr(gfc_expr*)
../../gcc/fortran/resolve.c:7098
0x68c184 gfc_reduce_init_expr(gfc_expr*)
../../gcc/fortran/expr.c:3094
0x68f460 gfc_match_init_expr(gfc_expr**)
../../gcc/fortran/expr.c:3142
0x67aa44 variable_decl
../../gcc/fortran/decl.c:2892
0x67aa44 gfc_match_data_decl()
../../gcc/fortran/decl.c:6201
0x6de9c3 match_word
../../gcc/fortran/parse.c:65
0x6de9c3 decode_statement
../../gcc/fortran/parse.c:376
0x6e040c next_free
../../gcc/fortran/parse.c:1316
0x6e040c next_statement
../../gcc/fortran/parse.c:1548
0x6e1a7b parse_spec
../../gcc/fortran/parse.c:3967
0x6e484c parse_progunit
../../gcc/fortran/parse.c:5896
0x6e5f41 gfc_parse_file()
../../gcc/fortran/parse.c:6437
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/100196] [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364
2021-04-21 20:02 [Bug fortran/100196] New: [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364 gscfq@t-online.de
@ 2021-04-22 7:33 ` rguenth at gcc dot gnu.org
2021-04-22 9:14 ` marxin at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-22 7:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100196
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
Target Milestone|--- |9.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/100196] [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364
2021-04-21 20:02 [Bug fortran/100196] New: [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364 gscfq@t-online.de
2021-04-22 7:33 ` [Bug fortran/100196] " rguenth at gcc dot gnu.org
@ 2021-04-22 9:14 ` marxin at gcc dot gnu.org
2021-06-01 8:20 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-04-22 9:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100196
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org,
| |tkoenig at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2021-04-22
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r8-7161-g5867bb9a60ed0ff7.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/100196] [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364
2021-04-21 20:02 [Bug fortran/100196] New: [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364 gscfq@t-online.de
2021-04-22 7:33 ` [Bug fortran/100196] " rguenth at gcc dot gnu.org
2021-04-22 9:14 ` marxin at gcc dot gnu.org
@ 2021-06-01 8:20 ` rguenth at gcc dot gnu.org
2022-02-02 21:04 ` anlauf at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100196
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.4 |9.5
--- Comment #2 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] 7+ messages in thread
* [Bug fortran/100196] [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364
2021-04-21 20:02 [Bug fortran/100196] New: [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364 gscfq@t-online.de
` (2 preceding siblings ...)
2021-06-01 8:20 ` rguenth at gcc dot gnu.org
@ 2022-02-02 21:04 ` anlauf at gcc dot gnu.org
2022-02-02 22:49 ` anlauf at gcc dot gnu.org
2022-05-27 9:04 ` [Bug fortran/100196] [9 " rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-02-02 21:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100196
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #3 from anlauf at gcc dot gnu.org ---
I do not see the ICE for current 12/11/10 but get:
pr100196-z1.f90:3:22:
3 | real, parameter :: b = 1 + [a]
| 1
Error: Incompatible ranks 0 and 1 in assignment at (1)
and
pr100196-z5.f90:3:25:
3 | real, parameter :: b(1) = 1 + [a]
| 1
Error: Different shape for array assignment at (1) on dimension 1 (1 and 0)
The issue is still present on 9-branch, though.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/100196] [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364
2021-04-21 20:02 [Bug fortran/100196] New: [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364 gscfq@t-online.de
` (3 preceding siblings ...)
2022-02-02 21:04 ` anlauf at gcc dot gnu.org
@ 2022-02-02 22:49 ` anlauf at gcc dot gnu.org
2022-05-27 9:04 ` [Bug fortran/100196] [9 " rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-02-02 22:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100196
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/100196] [9 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364
2021-04-21 20:02 [Bug fortran/100196] New: [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364 gscfq@t-online.de
` (4 preceding siblings ...)
2022-02-02 22:49 ` anlauf at gcc dot gnu.org
@ 2022-05-27 9:04 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100196
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|9.5 |10.0
Status|WAITING |RESOLVED
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed in GCC 10.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-05-27 9:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 20:02 [Bug fortran/100196] New: [9/10/11/12 Regression] ICE in reduce_binary_ca, at fortran/arith.c:1364 gscfq@t-online.de
2021-04-22 7:33 ` [Bug fortran/100196] " rguenth at gcc dot gnu.org
2021-04-22 9:14 ` marxin at gcc dot gnu.org
2021-06-01 8:20 ` rguenth at gcc dot gnu.org
2022-02-02 21:04 ` anlauf at gcc dot gnu.org
2022-02-02 22:49 ` anlauf at gcc dot gnu.org
2022-05-27 9:04 ` [Bug fortran/100196] [9 " 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).