public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/108452] New: ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5347
@ 2023-01-18 18:26 gscfq@t-online.de
2023-02-28 21:05 ` [Bug fortran/108452] " anlauf at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: gscfq@t-online.de @ 2023-01-18 18:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108452
Bug ID: 108452
Summary: ICE in gfc_trans_use_stmts, at
fortran/trans-decl.cc:5347
Product: gcc
Version: 13.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
module m
interface g
procedure f
end interface
contains
function f()
end
end
program p
use m, u => g, v => g
end
$ cat z2.f90
module m
interface g
procedure f
end interface
contains
function f()
end
end
program p
use m, u => g
end
$ gfortran-13-20230115 -c z2.f90
$
$ gfortran-13-20230115 -c z1.f90
z1.f90:10:7:
10 | use m, u => g, v => g
| 1
internal compiler error: in gfc_trans_use_stmts, at fortran/trans-decl.cc:5347
0x8a6fd3 gfc_trans_use_stmts
../../gcc/fortran/trans-decl.cc:5347
0x8a783b gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.cc:7837
0x82968e translate_all_program_units
../../gcc/fortran/parse.cc:6721
0x82968e gfc_parse_file()
../../gcc/fortran/parse.cc:7027
0x876eff gfc_be_parse_file
../../gcc/fortran/f95-lang.cc:229
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/108452] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5347
2023-01-18 18:26 [Bug fortran/108452] New: ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5347 gscfq@t-online.de
@ 2023-02-28 21:05 ` anlauf at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-02-28 21:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108452
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-02-28
Status|UNCONFIRMED |NEW
CC| |anlauf at gcc dot gnu.org
Ever confirmed|0 |1
Keywords| |ice-on-valid-code
--- Comment #1 from anlauf at gcc dot gnu.org ---
Replacing
use m, u => g, v => g
by
use m, only: u => g, v => g
makes the code compile and gives an apparently sane dump.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-28 21:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-18 18:26 [Bug fortran/108452] New: ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5347 gscfq@t-online.de
2023-02-28 21:05 ` [Bug fortran/108452] " 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).