public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/100275] New: ICE in gfc_build_null_descriptor, at fortran/trans-array.c:417
@ 2021-04-26 19:51 gscfq@t-online.de
2021-04-26 19:52 ` [Bug fortran/100275] " gscfq@t-online.de
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gscfq@t-online.de @ 2021-04-26 19:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100275
Bug ID: 100275
Summary: ICE in gfc_build_null_descriptor, at
fortran/trans-array.c:417
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: ---
This invalid code affects versions down to at least r5 :
$ cat z1.f90
program p
type t
integer :: a(1)
end type
type(t) :: x
data x /t(null())/
end
$ gfortran-11-20210425 -c z1.f90
z1.f90:1:9:
1 | program p
| 1
internal compiler error: in gfc_build_null_descriptor, at
fortran/trans-array.c:417
0x73c049 gfc_build_null_descriptor(tree_node*)
../../gcc/fortran/trans-array.c:417
0x74f727 gfc_conv_array_initializer(tree_node*, gfc_expr*)
../../gcc/fortran/trans-array.c:6227
0x7798a0 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
../../gcc/fortran/trans-expr.c:7948
0x7676e3 gfc_conv_structure(gfc_se*, gfc_expr*, int)
../../gcc/fortran/trans-expr.c:8863
0x7799f9 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
../../gcc/fortran/trans-expr.c:7983
0x75c46f gfc_get_symbol_decl(gfc_symbol*)
../../gcc/fortran/trans-decl.c:1918
0x75ef0f generate_local_decl
../../gcc/fortran/trans-decl.c:5955
0x71df02 do_traverse_symtree
../../gcc/fortran/symbol.c:4170
0x75feb4 generate_local_vars
../../gcc/fortran/trans-decl.c:6161
0x75feb4 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6820
0x6e6a36 translate_all_program_units
../../gcc/fortran/parse.c:6355
0x6e6a36 gfc_parse_file()
../../gcc/fortran/parse.c:6624
0x732d2f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:212
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/100275] ICE in gfc_build_null_descriptor, at fortran/trans-array.c:417
2021-04-26 19:51 [Bug fortran/100275] New: ICE in gfc_build_null_descriptor, at fortran/trans-array.c:417 gscfq@t-online.de
@ 2021-04-26 19:52 ` gscfq@t-online.de
2021-04-29 20:57 ` anlauf at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: gscfq@t-online.de @ 2021-04-26 19:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100275
G. Steinmetz <gscfq@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---
Additional variants :
$ cat z2.f90
program p
type t
integer :: a
end type
type(t) :: x
data x /t(null())/
end
$ cat z3.f90
program p
type t
integer :: a(1)
end type
type(t) :: z
data z /t(f())/
end
$ gfortran-11-20210425 -c z2.f90 # detected
z2.f90:6:13:
6 | data x /t(null())/
| 1
Error: non-constant initialization expression at (1)
$ gfortran-11-20210425 -c z3.f90
z3.f90:1:9:
1 | program p
| 1
internal compiler error: in gfc_conv_array_initializer, at
fortran/trans-array.c:6230
0x785ae2 gfc_conv_array_initializer(tree_node*, gfc_expr*)
../../gcc/fortran/trans-array.c:6230
0x7c6d20 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
../../gcc/fortran/trans-expr.c:7948
0x7c74b3 gfc_conv_structure(gfc_se*, gfc_expr*, int)
../../gcc/fortran/trans-expr.c:8863
0x7c6e79 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool,
bool)
../../gcc/fortran/trans-expr.c:7983
0x7a756a gfc_get_symbol_decl(gfc_symbol*)
../../gcc/fortran/trans-decl.c:1918
0x7ab08f generate_local_decl
../../gcc/fortran/trans-decl.c:5955
0x75b472 do_traverse_symtree
../../gcc/fortran/symbol.c:4170
0x7ac5cc generate_local_vars
../../gcc/fortran/trans-decl.c:6161
0x7ac5cc gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6820
0x723fa6 translate_all_program_units
../../gcc/fortran/parse.c:6355
0x723fa6 gfc_parse_file()
../../gcc/fortran/parse.c:6624
0x770e5f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:212
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/100275] ICE in gfc_build_null_descriptor, at fortran/trans-array.c:417
2021-04-26 19:51 [Bug fortran/100275] New: ICE in gfc_build_null_descriptor, at fortran/trans-array.c:417 gscfq@t-online.de
2021-04-26 19:52 ` [Bug fortran/100275] " gscfq@t-online.de
@ 2021-04-29 20:57 ` anlauf at gcc dot gnu.org
2022-01-25 18:08 ` gscfq@t-online.de
2022-01-25 18:25 ` anlauf at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-04-29 20:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100275
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-04-29
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/100275] ICE in gfc_build_null_descriptor, at fortran/trans-array.c:417
2021-04-26 19:51 [Bug fortran/100275] New: ICE in gfc_build_null_descriptor, at fortran/trans-array.c:417 gscfq@t-online.de
2021-04-26 19:52 ` [Bug fortran/100275] " gscfq@t-online.de
2021-04-29 20:57 ` anlauf at gcc dot gnu.org
@ 2022-01-25 18:08 ` gscfq@t-online.de
2022-01-25 18:25 ` anlauf at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: gscfq@t-online.de @ 2022-01-25 18:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100275
--- Comment #2 from G. Steinmetz <gscfq@t-online.de> ---
Seems to be fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/100275] ICE in gfc_build_null_descriptor, at fortran/trans-array.c:417
2021-04-26 19:51 [Bug fortran/100275] New: ICE in gfc_build_null_descriptor, at fortran/trans-array.c:417 gscfq@t-online.de
` (2 preceding siblings ...)
2022-01-25 18:08 ` gscfq@t-online.de
@ 2022-01-25 18:25 ` anlauf at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-01-25 18:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100275
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #3 from anlauf at gcc dot gnu.org ---
Looks very much like a duplicate of pr67804.
*** This bug has been marked as a duplicate of bug 67804 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-01-25 18:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 19:51 [Bug fortran/100275] New: ICE in gfc_build_null_descriptor, at fortran/trans-array.c:417 gscfq@t-online.de
2021-04-26 19:52 ` [Bug fortran/100275] " gscfq@t-online.de
2021-04-29 20:57 ` anlauf at gcc dot gnu.org
2022-01-25 18:08 ` gscfq@t-online.de
2022-01-25 18:25 ` 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).