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

            Bug ID: 127604
           Summary: internal compiler error: in gimple_add_tmp_var, at
                    gimplify.cc:845
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 89.64.xjp at protonmail dot com
  Target Milestone: ---

https://godbolt.org/z/e3EKTThe7
---------------------
struct S 
{
        S() 
        { 
                static constexpr int a[1]{};
                static constexpr auto [b] = a; 
        }
};
S s;
---------------------
<source>: In constructor 'S::S()':
<source>:6:39: warning: unused structured binding declaration
[-Wunused-variable]
    6 |                 static constexpr auto [b] = a;
      |                                       ^~~
<source>: In constructor 'S::S()':
<source>:6:39: internal compiler error: in gimple_add_tmp_var, at
gimplify.cc:845
0x2c5c638 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x2c5127b internal_error(char const*, ...)
        ???:0
0xb80000 fancy_abort(char const*, int, char const*)
        ???:0
0x1272971 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0x1271de7 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0x12749aa gimplify_stmt(tree_node**, gimple**)
        ???:0
0x127173b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0x12749aa gimplify_stmt(tree_node**, gimple**)
        ???:0
0x1271c10 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0x12749aa gimplify_stmt(tree_node**, gimple**)
        ???:0
0x1271c10 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ???:0
0x127dbc6 gimplify_body(tree_node*, bool)
        ???:0
0x127e08c gimplify_function_tree(tree_node*)
        ???:0
0x1044b97 cgraph_node::analyze()
        ???:0
0x1048066 symbol_table::finalize_compilation_unit()
        ???:0
/cefs/a4/a48e2c8c059aecfe301870bb_gcc-trunk-20260924/bin/../libexec/gcc/x86_64-linux-gnu/17.0.0/cc1plus
-quiet -imultiarch x86_64-linux-gnu -iprefix
/cefs/a4/a48e2c8c059aecfe301870bb_gcc-trunk-20260924/bin/../lib/gcc/x86_64-linux-gnu/17.0.0/
-D_GNU_SOURCE -D NDEBUG <source> -quiet -dumpdir /app/ -dumpbase output.cpp
-dumpbase-ext .cpp -masm=intel -march=znver4 -g -O3 -Wall -std=c++26
-fdiagnostics-color=always -fno-verbose-asm -freflection
-fconstexpr-ops-limit=4294967295 -ftemplate-depth=65535 -fno-exceptions
-fno-stack-protector -ftrivial-auto-var-init=uninitialized -o /app/output.s
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
  • [Bug c++/127604] New: interna... 89.64.xjp at protonmail dot com via Gcc-bugs

Reply via email to