public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/101101] New: ICE in gfc_build_array_type, at fortran/trans-types.c:1391
@ 2021-06-16 17:23 gscfq@t-online.de
2021-07-29 20:07 ` [Bug fortran/101101] " anlauf at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: gscfq@t-online.de @ 2021-06-16 17:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101101
Bug ID: 101101
Summary: ICE in gfc_build_array_type, at
fortran/trans-types.c:1391
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: ---
Test case in addition to pr99138, pr99254 and pr99266,
affects versions down to at least r5 :
$ cat z1.f90
subroutine s(x)
type t
end type
class(t) :: x
dimension :: x(:)
end
$ gfortran-12-20210613 -c z1.f90
z1.f90:1:12:
1 | subroutine s(x)
| 1
internal compiler error: Segmentation fault
0xc7bfff crash_signal
../../gcc/toplev.c:327
0x82022a gfc_build_array_type
../../gcc/fortran/trans-types.c:1391
0x82222e gfc_get_derived_type(gfc_symbol*, int)
../../gcc/fortran/trans-types.c:2791
0x8229d8 gfc_typenode_for_spec(gfc_typespec*, int)
../../gcc/fortran/trans-types.c:1170
0x822c2e gfc_sym_type(gfc_symbol*)
../../gcc/fortran/trans-types.c:2281
0x821174 gfc_get_function_type(gfc_symbol*, gfc_actual_arglist*, char const*)
../../gcc/fortran/trans-types.c:3126
0x7bac44 build_function_decl
../../gcc/fortran/trans-decl.c:2386
0x7c0836 gfc_create_function_decl(gfc_namespace*, bool)
../../gcc/fortran/trans-decl.c:3085
0x7c6e26 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6787
0x74c876 translate_all_program_units
../../gcc/fortran/parse.c:6461
0x74c876 gfc_parse_file()
../../gcc/fortran/parse.c:6730
0x798bbf gfc_be_parse_file
../../gcc/fortran/f95-lang.c:212
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/101101] ICE in gfc_build_array_type, at fortran/trans-types.c:1391
2021-06-16 17:23 [Bug fortran/101101] New: ICE in gfc_build_array_type, at fortran/trans-types.c:1391 gscfq@t-online.de
@ 2021-07-29 20:07 ` anlauf at gcc dot gnu.org
2022-01-26 17:23 ` gscfq@t-online.de
2023-03-06 17:15 ` anlauf at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-07-29 20:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101101
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-07-29
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from anlauf at gcc dot gnu.org ---
Confirmed.
Workaround: use
class(t) :: x(:)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/101101] ICE in gfc_build_array_type, at fortran/trans-types.c:1391
2021-06-16 17:23 [Bug fortran/101101] New: ICE in gfc_build_array_type, at fortran/trans-types.c:1391 gscfq@t-online.de
2021-07-29 20:07 ` [Bug fortran/101101] " anlauf at gcc dot gnu.org
@ 2022-01-26 17:23 ` gscfq@t-online.de
2023-03-06 17:15 ` anlauf at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: gscfq@t-online.de @ 2022-01-26 17:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101101
--- Comment #2 from G. Steinmetz <gscfq@t-online.de> ---
Alternatives :
$ cat zz1.f90
program p
class(*), pointer :: x
dimension :: x(:)
end
$ cat zz2.f90
program p
class(*) :: x(:)
pointer :: x
end
$ gfortran-12-20220123 -c zz1.f90
f951: internal compiler error: Segmentation fault
0xcc430f crash_signal
../../gcc/toplev.cc:322
0x672cc7 resolve_fl_var_and_proc
../../gcc/fortran/resolve.cc:12866
0x76ace6 resolve_fl_variable
../../gcc/fortran/resolve.cc:13012
0x76ace6 resolve_symbol
../../gcc/fortran/resolve.cc:16096
0x789642 do_traverse_symtree
../../gcc/fortran/symbol.cc:4174
0x76d9c4 resolve_types
../../gcc/fortran/resolve.cc:17455
0x768e5c gfc_resolve(gfc_namespace*)
../../gcc/fortran/resolve.cc:17570
0x751194 resolve_all_program_units
../../gcc/fortran/parse.cc:6586
0x751194 gfc_parse_file()
../../gcc/fortran/parse.cc:6842
0x79e86f gfc_be_parse_file
../../gcc/fortran/f95-lang.cc:216
$ gfortran-12-20220123 -c zz2.f90
zz2.f90:4:3:
4 | end
| 1
internal compiler error: Segmentation fault
0xcc430f crash_signal
../../gcc/toplev.cc:322
0x6ee9b1 free_expr0
../../gcc/fortran/expr.cc:446
0x6eeb18 gfc_free_expr(gfc_expr*)
../../gcc/fortran/expr.cc:530
0x6b9fce gfc_free_array_spec(gfc_array_spec*)
../../gcc/fortran/array.cc:352
0x78fd1f free_components
../../gcc/fortran/symbol.cc:2606
0x78fd1f gfc_free_symbol(gfc_symbol*&)
../../gcc/fortran/symbol.cc:3078
0x78fe79 gfc_release_symbol(gfc_symbol*&)
../../gcc/fortran/symbol.cc:3127
0x78ff4e free_sym_tree
../../gcc/fortran/symbol.cc:3904
0x78ff3c free_sym_tree
../../gcc/fortran/symbol.cc:3901
0x78faf0 gfc_free_namespace(gfc_namespace*&)
../../gcc/fortran/symbol.cc:4043
0x790209 gfc_symbol_done_2()
../../gcc/fortran/symbol.cc:4105
0x728008 gfc_done_2()
../../gcc/fortran/misc.cc:382
0x751818 translate_all_program_units
../../gcc/fortran/parse.cc:6670
0x751818 gfc_parse_file()
../../gcc/fortran/parse.cc:6938
0x79e86f gfc_be_parse_file
../../gcc/fortran/f95-lang.cc:216
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/101101] ICE in gfc_build_array_type, at fortran/trans-types.c:1391
2021-06-16 17:23 [Bug fortran/101101] New: ICE in gfc_build_array_type, at fortran/trans-types.c:1391 gscfq@t-online.de
2021-07-29 20:07 ` [Bug fortran/101101] " anlauf at gcc dot gnu.org
2022-01-26 17:23 ` gscfq@t-online.de
@ 2023-03-06 17:15 ` anlauf at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-03-06 17:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101101
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
CC| |anlauf at gcc dot gnu.org
--- Comment #3 from anlauf at gcc dot gnu.org ---
Duplicate.
*** 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-03-06 17:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16 17:23 [Bug fortran/101101] New: ICE in gfc_build_array_type, at fortran/trans-types.c:1391 gscfq@t-online.de
2021-07-29 20:07 ` [Bug fortran/101101] " anlauf at gcc dot gnu.org
2022-01-26 17:23 ` gscfq@t-online.de
2023-03-06 17:15 ` 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).