[Bug c++/123080] ICE when constructing parameter type in requires clause of lambda
eczbek.void at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 9 22:17:13 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123080
--- Comment #1 from eczbek.void at gmail dot com ---
Probably related: https://godbolt.org/z/G463dvqn3
```
template<typename T>
using A = [:^^T:];
int main() {
[]<typename T = int> requires(requires { A<T> {}; }) {}();
}
```
```
<source>:5:9: internal compiler error: in write_type, at cp/mangle.cc:2744
5 | []<typename T = int> requires(requires { A<T> {}; }) {}();
| ^
0x293efa8 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
???:0
0x2933d6b internal_error(char const*, ...)
???:0
0xb16cd8 fancy_abort(char const*, int, char const*)
???:0
0xc76859 mangle_decl(tree_node*)
???:0
0x18a7d95 decl_assembler_name(tree_node*)
???:0
0x18d1788 assign_assembler_name_if_needed(tree_node*)
???:0
0xfb676f cgraph_node::analyze()
???:0
0xfb9db1 symbol_table::finalize_compilation_unit()
???:0
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
```
More information about the Gcc-bugs
mailing list