public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/102597] New: ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243
@ 2021-10-04 18:43 gscfq@t-online.de
2021-10-11 8:21 ` [Bug fortran/102597] ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 since r8-3365-gb89a63b916340ef2 marxin at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gscfq@t-online.de @ 2021-10-04 18:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102597
Bug ID: 102597
Summary: ICE in gfc_get_extern_function_decl, at
fortran/trans-decl.c:2243
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: ---
Started with r7 :
$ cat z1.f90
program p
use iso_fortran_env
associate (y => (compiler_version))
end associate
end
$ cat z0.f90
program p
use iso_fortran_env
associate (y => compiler_version)
end associate
end
$ gfortran-12-20211003 -c z1.f90
z1.f90:3:38:
3 | associate (y => (compiler_version))
| 1
internal compiler error: Segmentation fault
0xd41bdf crash_signal
../../gcc/toplev.c:331
0x86c901 gfc_get_extern_function_decl(gfc_symbol*, gfc_actual_arglist*, char
const*)
../../gcc/fortran/trans-decl.c:2243
0x86d0ad gfc_get_extern_function_decl(gfc_symbol*, gfc_actual_arglist*, char
const*)
../../gcc/fortran/trans-decl.c:2121
0x86d9c7 gfc_get_symbol_decl(gfc_symbol*)
../../gcc/fortran/trans-decl.c:1772
0x87d3e8 gfc_conv_variable
../../gcc/fortran/trans-expr.c:2994
0x87958a gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:9074
0x879696 gfc_conv_expr_op
../../gcc/fortran/trans-expr.c:3771
0x879696 gfc_conv_expr(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-expr.c:9062
0x889881 gfc_trans_assignment_1
../../gcc/fortran/trans-expr.c:11359
0x8bc04c trans_associate_var
../../gcc/fortran/trans-stmt.c:2201
0x8c2771 gfc_trans_block_construct(gfc_code*)
../../gcc/fortran/trans-stmt.c:2314
0x84adc7 trans_code
../../gcc/fortran/trans.c:2014
0x871974 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6905
0x7f77b6 translate_all_program_units
../../gcc/fortran/parse.c:6572
0x7f77b6 gfc_parse_file()
../../gcc/fortran/parse.c:6841
0x843f3f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:216
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/102597] ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 since r8-3365-gb89a63b916340ef2
2021-10-04 18:43 [Bug fortran/102597] New: ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 gscfq@t-online.de
@ 2021-10-11 8:21 ` marxin at gcc dot gnu.org
2024-04-22 19:55 ` anlauf at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-11 8:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102597
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-10-11
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Summary|ICE in |ICE in
|gfc_get_extern_function_dec |gfc_get_extern_function_dec
|l, at |l, at
|fortran/trans-decl.c:2243 |fortran/trans-decl.c:2243
| |since
| |r8-3365-gb89a63b916340ef2
CC| |marxin at gcc dot gnu.org,
| |pault at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started likely with r8-3365-gb89a63b916340ef2.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/102597] ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 since r8-3365-gb89a63b916340ef2
2021-10-04 18:43 [Bug fortran/102597] New: ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 gscfq@t-online.de
2021-10-11 8:21 ` [Bug fortran/102597] ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 since r8-3365-gb89a63b916340ef2 marxin at gcc dot gnu.org
@ 2024-04-22 19:55 ` anlauf at gcc dot gnu.org
2024-04-22 20:48 ` pault at gcc dot gnu.org
2024-04-23 9:23 ` cvs-commit at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: anlauf at gcc dot gnu.org @ 2024-04-22 19:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102597
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |10.5.0, 11.4.1, 12.3.1
Status|NEW |WAITING
Known to work| |13.2.1, 14.0
--- Comment #2 from anlauf at gcc dot gnu.org ---
Works on 14-mainline, and on 13-branch since at least r13-8285.
Likely due to one of the associate-fixes.
Updating known-to-work and known-to-fail.
In principle this bug has been fixed and could be closed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/102597] ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 since r8-3365-gb89a63b916340ef2
2021-10-04 18:43 [Bug fortran/102597] New: ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 gscfq@t-online.de
2021-10-11 8:21 ` [Bug fortran/102597] ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 since r8-3365-gb89a63b916340ef2 marxin at gcc dot gnu.org
2024-04-22 19:55 ` anlauf at gcc dot gnu.org
@ 2024-04-22 20:48 ` pault at gcc dot gnu.org
2024-04-23 9:23 ` cvs-commit at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pault at gcc dot gnu.org @ 2024-04-22 20:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102597
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|WAITING |RESOLVED
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Fails with 11.2.1 20210728 and is OK with 12.2.1 20230321.
Thanks for the report Gerhard. I think that we can shut this one down.
Paul
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/102597] ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 since r8-3365-gb89a63b916340ef2
2021-10-04 18:43 [Bug fortran/102597] New: ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 gscfq@t-online.de
` (2 preceding siblings ...)
2024-04-22 20:48 ` pault at gcc dot gnu.org
@ 2024-04-23 9:23 ` cvs-commit at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-23 9:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102597
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pault@gcc.gnu.org>:
https://gcc.gnu.org/g:ca00bf02dcc37f9ff1028ca1d90e8b8d95d69683
commit r14-10089-gca00bf02dcc37f9ff1028ca1d90e8b8d95d69683
Author: Paul Thomas <pault@gcc.gnu.org>
Date: Tue Apr 23 10:22:48 2024 +0100
Fortran: Check that the ICE does not reappear [PR102597]
2024-04-23 Paul Thomas <pault@gcc.gnu.org>
gcc/testsuite/
PR fortran/102597
* gfortran.dg/pr102597.f90: New test.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-23 9:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04 18:43 [Bug fortran/102597] New: ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 gscfq@t-online.de
2021-10-11 8:21 ` [Bug fortran/102597] ICE in gfc_get_extern_function_decl, at fortran/trans-decl.c:2243 since r8-3365-gb89a63b916340ef2 marxin at gcc dot gnu.org
2024-04-22 19:55 ` anlauf at gcc dot gnu.org
2024-04-22 20:48 ` pault at gcc dot gnu.org
2024-04-23 9:23 ` cvs-commit 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).