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

            Bug ID: 121746
           Summary: ICE in fold_nonarray_ctor_reference
           Product: gcc
           Version: 15.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

The testcase ICEs as follows:

g++ -S ccUHHH1f.C -std=c++23
[...]
../src/ibkr/client/EClient.h:137:37: internal compiler error: Segmentation
fault
0x22f8cff internal_error(char const*, ...)
        /space/rguenther/src/gcc-15-branch/gcc/diagnostic-global-context.cc:517
0xfefa9f crash_signal
        /space/rguenther/src/gcc-15-branch/gcc/toplev.cc:322
0xc981e8 fold_nonarray_ctor_reference
        /space/rguenther/src/gcc-15-branch/gcc/gimple-fold.cc:9905
0xc981e8 fold_ctor_reference(tree_node*, tree_node*, poly_int<1u, unsigned
long> const&, poly_int<1u, unsigned long> const&, tree_node*, unsigned long*)
        /space/rguenther/src/gcc-15-branch/gcc/gimple-fold.cc:10081
0xc08100 constant_byte_string
        /space/rguenther/src/gcc-15-branch/gcc/expr.cc:13104
0xc3edc0 getbyterep(tree_node*, unsigned long*)
        /space/rguenther/src/gcc-15-branch/gcc/fold-const.cc:16607
0xc6ad27 fold_const_call(combined_fn, tree_node*, tree_node*)
        /space/rguenther/src/gcc-15-branch/gcc/fold-const-call.cc:1344
0xad4cbe fold_builtin_1
        /space/rguenther/src/gcc-15-branch/gcc/builtins.cc:10644
0xad4cbe fold_builtin_n
        /space/rguenther/src/gcc-15-branch/gcc/builtins.cc:10958
0x8245f6 cxx_eval_builtin_function_call
        /space/rguenther/src/gcc-15-branch/gcc/cp/constexpr.cc:1728
0x815977 cxx_eval_constant_expression
        /space/rguenther/src/gcc-15-branch/gcc/cp/constexpr.cc:7915
0x81fde6 cxx_eval_outermost_constant_expr
        /space/rguenther/src/gcc-15-branch/gcc/cp/constexpr.cc:9238
0x823f7b fold_non_dependent_expr_template
        /space/rguenther/src/gcc-15-branch/gcc/cp/constexpr.cc:9634
0x82425d fold_non_dependent_init(tree_node*, int, bool, tree_node*)
        /space/rguenther/src/gcc-15-branch/gcc/cp/constexpr.cc:9712
0xa1f81c store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        /space/rguenther/src/gcc-15-branch/gcc/cp/typeck2.cc:918
0x87a85f check_initializer
        /space/rguenther/src/gcc-15-branch/gcc/cp/decl.cc:8023
0x87cfc8 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int,
cp_decomp*)
        /space/rguenther/src/gcc-15-branch/gcc/cp/decl.cc:9053
0x968eba cp_parser_init_declarator
        /space/rguenther/src/gcc-15-branch/gcc/cp/parser.cc:24294
0x96f67f cp_parser_simple_declaration
        /space/rguenther/src/gcc-15-branch/gcc/cp/parser.cc:16532
0x9704f0 cp_parser_declaration_statement
        /space/rguenther/src/gcc-15-branch/gcc/cp/parser.cc:15446
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.

still ICEs on trunk.

Reply via email to