https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121103
Bug ID: 121103
Summary: ICE at O2: in single_succ_edge, at basic-block.h:332
Product: gcc
Version: 15.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: bic60176 at gmail dot com
Target Milestone: ---
Created attachment 61874
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61874&action=edit
testcase
Compiler Explorer: https://godbolt.org/z/Kc6bo1TPW
console:
during GIMPLE pass: local-fnsummary
<source>: In function 'h':
<source>:38:1: internal compiler error: in single_succ_edge, at
basic-block.h:332
38 | }
| ^
0x253d385 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
???:0
0x255f066 internal_error(char const*, ...)
???:0
0xa011e4 fancy_abort(char const*, int, char const*)
???:0
0xecc581 compute_fn_summary(cgraph_node*, bool)
???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1