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

            Bug ID: 126663
           Summary: ICE on spliced template parameter in function
                    parameter list
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eczbek.void at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/YEG61dGPe

```
template<auto t>
void f(typename[:t:]);

template<auto t>
void f(typename[:t:]);

int main() {
        f<^^int>(0);
}
```

```
<source>: In function 'int main()':
<source>:8:17: internal compiler error: in unify, at cp/pt.cc:27183
    8 |         f<^^int>(0);
      |         ~~~~~~~~^~~
0x2b87308 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x2b7bf4b internal_error(char const*, ...)
        ???:0
0xb3f428 fancy_abort(char const*, int, char const*)
        ???:0
0xdd816f more_specialized_fn(tree_node*, tree_node*, int)
        ???:0
0xb783ff build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        ???:0
0xe37f0d finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        ???:0
0xd94943 c_parse_file()
        ???:0
0xf27d19 c_common_parse_file()
        ???:0
/cefs/3e/3eb35a084d9f9813e5b1b4b7_gcc-trunk-20260805/bin/../libexec/gcc/x86_64-linux-gnu/17.0.0/cc1plus
-quiet -imultiarch x86_64-linux-gnu -iprefix
/cefs/3e/3eb35a084d9f9813e5b1b4b7_gcc-trunk-20260805/bin/../lib/gcc/x86_64-linux-gnu/17.0.0/
-D_GNU_SOURCE <source> -quiet -dumpdir /app/ -dumpbase output.cpp -dumpbase-ext
.cpp -masm=intel -mtune=generic -march=x86-64 -g -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.
```
  • [Bug c++/126663] New: ICE on spl... eczbek.void at gmail dot com via Gcc-bugs

Reply via email to