public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/95542] New: ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1649
@ 2020-06-04 18:08 gscfq@t-online.de
2020-06-04 18:08 ` [Bug fortran/95542] " gscfq@t-online.de
2020-06-08 22:10 ` dominiq at lps dot ens.fr
0 siblings, 2 replies; 3+ messages in thread
From: gscfq@t-online.de @ 2020-06-04 18:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95542
Bug ID: 95542
Summary: ICE in gfc_get_symbol_decl, at
fortran/trans-decl.c:1649
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: ---
Affects versions down to at least r5 :
$ cat z1.f90
function f()
character(:), allocatable :: f
call s
contains
subroutine s
f = 'abc'
end
end
$ cat z2.f90
function f()
character(:), pointer :: f
call s
contains
subroutine s
f = 'abc'
end
end
$ gfortran-11-20200531 -c z1.f90
z1.f90:6:0:
6 | f = 'abc'
|
internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1649
0x72770b gfc_get_symbol_decl(gfc_symbol*)
../../gcc/fortran/trans-decl.c:1646
0x735e68 gfc_conv_variable
../../gcc/fortran/trans-expr.c:2734
0x73207a gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:8690
0x741abf gfc_trans_assignment_1
../../gcc/fortran/trans-expr.c:10920
0x701537 trans_code
../../gcc/fortran/trans.c:1864
0x72ad24 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6840
0x72ab24 gfc_generate_contained_functions
../../gcc/fortran/trans-decl.c:5835
0x72ab24 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6772
0x6b25e6 translate_all_program_units
../../gcc/fortran/parse.c:6306
0x6b25e6 gfc_parse_file()
../../gcc/fortran/parse.c:6545
0x6fdfff gfc_be_parse_file
../../gcc/fortran/f95-lang.c:210
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/95542] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1649
2020-06-04 18:08 [Bug fortran/95542] New: ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1649 gscfq@t-online.de
@ 2020-06-04 18:08 ` gscfq@t-online.de
2020-06-08 22:10 ` dominiq at lps dot ens.fr
1 sibling, 0 replies; 3+ messages in thread
From: gscfq@t-online.de @ 2020-06-04 18:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95542
G. Steinmetz <gscfq@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---
More variants :
$ cat zz1.f90
function f()
character(:), allocatable :: f
f = 'abc'
call s
contains
subroutine s
print *, f
end
end
$ cat zz2.f90
function f()
character(:), pointer :: f
f = 'abc'
call s
contains
subroutine s
print *, f
end
end
And a working one without an inner s :
$ cat za1.f90
function f()
character(:), allocatable :: f
f = 'abc'
end
program p
interface
function f()
character(:), allocatable :: f
end
end interface
print *, f()
end
$ gfortran-11-20200531 za1.f90 && ./a.out
abc
$
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/95542] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1649
2020-06-04 18:08 [Bug fortran/95542] New: ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1649 gscfq@t-online.de
2020-06-04 18:08 ` [Bug fortran/95542] " gscfq@t-online.de
@ 2020-06-08 22:10 ` dominiq at lps dot ens.fr
1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2020-06-08 22:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95542
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-06-08
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-08 22:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-04 18:08 [Bug fortran/95542] New: ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1649 gscfq@t-online.de
2020-06-04 18:08 ` [Bug fortran/95542] " gscfq@t-online.de
2020-06-08 22:10 ` dominiq at lps dot ens.fr
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).