https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126653
Bug ID: 126653
Summary: ICE on spliced namespace in using directive
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/xMG3bfE6d
```
template<auto ns>
void f() {
using namespace [:ns:];
}
```
```
<source>: In function 'void f()':
<source>:3:29: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'splice_expr' in cp_warn_deprecated_use_scopes,
at cp/decl2.cc:6554
3 | using namespace [:ns:];
| ^~
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
0xa39f3d tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
???: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.
```