https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121101
Bug ID: 121101
Summary: ICE at O2: in copy_reference_ops_from_ref, at
tree-ssa-sccvn.cc:1113
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 61872
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61872&action=edit
testcase
Compiler Explorer: https://godbolt.org/z/9abjbvbrn
console:
during GIMPLE pass: fre
<source>: In function 'get_free':
<source>:25:1: internal compiler error: in copy_reference_ops_from_ref, at
tree-ssa-sccvn.cc:1113
25 | }
| ^
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
0x13d1436 vn_reference_lookup(tree_node*, tree_node*, vn_lookup_kind,
vn_reference_s**, bool, tree_node**, tree_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