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

--- Comment #1 from Alexey Saldyrkine <alexey.saldyrkine at gmail dot com> ---
(In reply to Alexey Saldyrkine from comment #0)
full error message:
```
<source>: In function 'void non_template_func(int)':
<source>:16:76: error: uncaught exception of type 'std::meta::exception';
'what()': 'reflection with has_identifier false'
   16 |     constexpr auto refl =
meta::identifier_of(meta::type_of(parameter_refl));
      |                                                                        
   ^
<source>: In instantiation of 'void template_func(int) [with T = int]':
<source>:22:23:   required from here
   22 |     template_func<int>(1);
      |     ~~~~~~~~~~~~~~~~~~^~~
<source>:10:60: internal compiler error: Segmentation fault
   10 |     constexpr auto refl =
meta::identifier_of(meta::type_of(parameter_refl));
      |                                              
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
0x2963338 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x295807b internal_error(char const*, ...)
        ???:0
0xdf3182 process_metafunction(constexpr_ctx const*, tree_node*, tree_node*,
bool*, bool*, tree_node**)
        ???:0
0xb8f01c cxx_eval_constant_expression(constexpr_ctx const*, tree_node*,
value_cat, bool*, bool*, tree_node**)
        ???:0
0xdef980 process_metafunction(constexpr_ctx const*, tree_node*, tree_node*,
bool*, bool*, tree_node**)
        ???:0
0xb8f01c cxx_eval_constant_expression(constexpr_ctx const*, tree_node*,
value_cat, bool*, bool*, tree_node**)
        ???:0
0xba7dd9 maybe_constant_value(tree_node*, tree_node*, mce_value)
        ???:0
0xe75d27 store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        ???:0
0xc2e646 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int,
cp_decomp*)
        ???:0
0xdcf6bd instantiate_decl(tree_node*, bool, bool)
        ???:0
0xdd91ba instantiate_pending_templates(int)
        ???:0
0xc42c48 c_parse_final_cleanups()
        ???:0
0xef6f28 c_common_parse_file()
        ???:0
/cefs/5b/5b7473000a337cbbdec6c161_gcc-trunk-20260226/bin/../libexec/gcc/x86_64-linux-gnu/16.0.1/cc1plus
-quiet -imultiarch x86_64-linux-gnu -iprefix
/cefs/5b/5b7473000a337cbbdec6c161_gcc-trunk-20260226/bin/../lib/gcc/x86_64-linux-gnu/16.0.1/
-D_GNU_SOURCE <source> -quiet -dumpdir /app/ -dumpbase output.cpp -dumpbase-ext
.cpp -masm=intel -mtune=generic -march=x86-64 -g -Wall -Wextra -std=c++26
-fdiagnostics-color=always -fno-verbose-asm -freflection -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
```

Reply via email to