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

            Bug ID: 119206
           Summary: Internal compiler error when processing a va_arg
                    expression
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bic60176 at gmail dot com
  Target Milestone: ---

Created attachment 60702
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60702&action=edit
testcase

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

Console:
In file included from <source>:1:
<source>: In function 'f':
<source>:9:18: internal compiler error: in force_constant_size, at
gimplify.cc:802
    9 |   p = va_arg(ap, int(*[++i]));
      |                  ^~~
0x25f8a85 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x260fa56 internal_error(char const*, ...)
        ???:0
0x9eaa94 fancy_abort(char const*, int, char const*)
        ???:0
0xde1997 gimple_add_tmp_var(tree_node*)
        ???:0
0xd8a75b create_tmp_var(tree_node*, char const*)
        ???:0
0xdeabdb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdeca1c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdeb4f2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdeee5a gimplify_stmt(tree_node**, gimple**)
        ???:0
0xdec34b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdeee5a gimplify_stmt(tree_node**, gimple**)
        ???:0
0xdecc9c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0xdf51a6 gimplify_body(tree_node*, bool)
        ???:0
0xdf566c gimplify_function_tree(tree_node*)
        ???:0
0xc08a07 cgraph_node::analyze()
        ???:0
0xc0bd81 symbol_table::finalize_compilation_unit()
        ???: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