public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/96084] New: ICE in free_expr0, at fortran/expr.c:446
@ 2020-07-06 17:56 gscfq@t-online.de
2020-07-07 19:05 ` [Bug fortran/96084] " anlauf at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: gscfq@t-online.de @ 2020-07-06 17:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96084
Bug ID: 96084
Summary: ICE in free_expr0, at fortran/expr.c:446
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 invalid code produces errors up to name length 61, and gives
an ICE (or bailing out) for 62/63. To get a traceback it's better
to use a test version (configured with --enable-checking=yes).
$ cat z1_61.f90
program p
type n234567890123456789012345678901234567890123456789012345678901
integer :: i234567890123456789012345678901234567890123456789012345678901
end type
dimension a234567890123456789012345678901234567890123456789012345678901(1)
class (n234567890123456789012345678901234567890123456789012345678901),
allocatable :: &
a234567890123456789012345678901234567890123456789012345678901, &
b234567890123456789012345678901234567890123456789012345678901
call s(b234567890123456789012345678901234567890123456789012345678901 % &
j234567890123456789012345678901234567890123456789012345678901)
end
$ cat z1_62.f90
program p
type n2345678901234567890123456789012345678901234567890123456789012
integer :: i2345678901234567890123456789012345678901234567890123456789012
end type
dimension a2345678901234567890123456789012345678901234567890123456789012(1)
class (n2345678901234567890123456789012345678901234567890123456789012),
allocatable :: &
a2345678901234567890123456789012345678901234567890123456789012, &
b2345678901234567890123456789012345678901234567890123456789012
call s(b2345678901234567890123456789012345678901234567890123456789012 % &
j2345678901234567890123456789012345678901234567890123456789012)
end
$ cat z1_63.f90
program p
type n23456789012345678901234567890123456789012345678901234567890123
integer ::
i23456789012345678901234567890123456789012345678901234567890123
end type
dimension a23456789012345678901234567890123456789012345678901234567890123(1)
class (n23456789012345678901234567890123456789012345678901234567890123),
allocatable :: &
a23456789012345678901234567890123456789012345678901234567890123, &
b23456789012345678901234567890123456789012345678901234567890123
call s(b23456789012345678901234567890123456789012345678901234567890123 % &
j23456789012345678901234567890123456789012345678901234567890123)
end
$ gfortran-11-20200705 -c z1_63.f90
z1_63.f90:10:74:
10 |
j23456789012345678901234567890123456789012345678901234567890123)
|
1
Error: 'j23456789012345678901234567890123456789012345678901234567890123' at (1)
is not a member of the
'n23456789012345678901234567890123456789012345678901234567890123' structure;
did you mean 'i23456789012345678901234567890123456789012345678901234567890123'?
z1_63.f90:5:76:
5 | dimension
a23456789012345678901234567890123456789012345678901234567890123(1)
|
1
Error: Allocatable array
'a23456789012345678901234567890123456789012345678901234567890123' at (1) must
have a deferred shape or assumed rank
f951: internal compiler error: Segmentation fault
0xd6980f crash_signal
../../gcc/toplev.c:328
0x699981 free_expr0
../../gcc/fortran/expr.c:446
0x699ae8 gfc_free_expr(gfc_expr*)
../../gcc/fortran/expr.c:530
0x666721 gfc_free_array_spec(gfc_array_spec*)
../../gcc/fortran/array.c:351
0x73364f free_components
../../gcc/fortran/symbol.c:2605
0x73364f gfc_free_symbol(gfc_symbol*)
../../gcc/fortran/symbol.c:3077
0x73383e free_sym_tree
../../gcc/fortran/symbol.c:3902
0x73382c free_sym_tree
../../gcc/fortran/symbol.c:3899
0x73382c free_sym_tree
../../gcc/fortran/symbol.c:3899
0x73382c free_sym_tree
../../gcc/fortran/symbol.c:3899
0x73382c free_sym_tree
../../gcc/fortran/symbol.c:3899
0x7334b1 gfc_free_namespace(gfc_namespace*)
../../gcc/fortran/symbol.c:4041
0x733aea gfc_symbol_done_2()
../../gcc/fortran/symbol.c:4101
0x6d1e18 gfc_done_2()
../../gcc/fortran/misc.c:358
0x6f5fa0 translate_all_program_units
../../gcc/fortran/parse.c:6326
0x6f5fa0 gfc_parse_file()
../../gcc/fortran/parse.c:6546
0x74269f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:212
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/96084] ICE in free_expr0, at fortran/expr.c:446
2020-07-06 17:56 [Bug fortran/96084] New: ICE in free_expr0, at fortran/expr.c:446 gscfq@t-online.de
@ 2020-07-07 19:05 ` anlauf at gcc dot gnu.org
2023-03-31 20:30 ` anlauf at gcc dot gnu.org
2023-04-08 18:48 ` anlauf at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-07-07 19:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96084
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-07-07
Status|UNCONFIRMED |NEW
CC| |anlauf at gcc dot gnu.org
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/96084] ICE in free_expr0, at fortran/expr.c:446
2020-07-06 17:56 [Bug fortran/96084] New: ICE in free_expr0, at fortran/expr.c:446 gscfq@t-online.de
2020-07-07 19:05 ` [Bug fortran/96084] " anlauf at gcc dot gnu.org
@ 2023-03-31 20:30 ` anlauf at gcc dot gnu.org
2023-04-08 18:48 ` anlauf at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-31 20:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96084
--- Comment #1 from anlauf at gcc dot gnu.org ---
It appears that after the fix for pr106856 (CLASS attributes) we get the
right error messages now, and also valgrind suggests there is nothing left.
I tend to mark this PR as a duplicate.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/96084] ICE in free_expr0, at fortran/expr.c:446
2020-07-06 17:56 [Bug fortran/96084] New: ICE in free_expr0, at fortran/expr.c:446 gscfq@t-online.de
2020-07-07 19:05 ` [Bug fortran/96084] " anlauf at gcc dot gnu.org
2023-03-31 20:30 ` anlauf at gcc dot gnu.org
@ 2023-04-08 18:48 ` anlauf at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-04-08 18:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96084
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from anlauf at gcc dot gnu.org ---
Effectively a dup.
*** This bug has been marked as a duplicate of bug 106856 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-08 18:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 17:56 [Bug fortran/96084] New: ICE in free_expr0, at fortran/expr.c:446 gscfq@t-online.de
2020-07-07 19:05 ` [Bug fortran/96084] " anlauf at gcc dot gnu.org
2023-03-31 20:30 ` anlauf at gcc dot gnu.org
2023-04-08 18:48 ` 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).