https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121131

            Bug ID: 121131
           Summary: ICE at O2: in as_a, at machmode.h:391
           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 61889
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61889&action=edit
testcase

Compiler Explorer: https://godbolt.org/z/xP3qq1bx6

console:
during GIMPLE pass: fre
<source>: In function 'main':
<source>:24:5: internal compiler error: in as_a, at machmode.h:391
   24 | int main() {
      |     ^~~~
0x253f0d5 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x2560db6 internal_error(char const*, ...)
        ???:0
0xa02454 fancy_abort(char const*, int, char const*)
        ???:0
0xdc027a fold_ctor_reference(tree_node*, tree_node*, poly_int<1u, unsigned
long> const&, poly_int<1u, unsigned long> const&, tree_node*, unsigned long*)
        ???:0
0x13c59f9 fully_constant_vn_reference_p(vn_reference_s*)
        ???:0
0x12cfa88 walk_non_aliased_vuses(ao_ref*, tree_node*, bool, void* (*)(ao_ref*,
tree_node*, void*), void* (*)(ao_ref*, tree_node*, void*, translate_flags*),
tree_node* (*)(tree_node*), unsigned int&, void*)
        ???:0
0x13d330b 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

Reply via email to