[Bug c++/120775] [C++26] P2996R13 - Reflection
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 31 17:04:44 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120775
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #6)
> TODO:
>
> The test from
> https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3293r3.html still
> ICEs:
>
> base.C: In function ‘constexpr int f()’:
> base.C:15:81: internal compiler error: in cp_parser_splice_expression, at
> cp/parser.cc:6279
> 15 | B& b = d.[: std::meta::bases_of(^^D,
> std::meta::access_context::current())[0] :];
> |
> ^~
> 0x3011536 internal_error(char const*, ...)
> /home/mpolacek/src/forge/gcc/gcc/diagnostic-global-context.cc:787
> 0x301fe23 fancy_abort(char const*, int, char const*)
> /home/mpolacek/src/forge/gcc/gcc/diagnostics/context.cc:1806
> 0x6edd93 cp_parser_splice_expression
> /home/mpolacek/src/forge/gcc/gcc/cp/parser.cc:6279
We should error on splicing reflections satisfying is_base,
is_function_parameter, is_constructor, is_destructor etc.
More information about the Gcc-bugs
mailing list