[Bug c++/123752] [reflection] data_member_spec() doesn't accept default-initialized data_member_options
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 5 18:25:36 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123752
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As for the ICE, reduced testcase is:
struct S { int s; };
struct U { int u; };
template <typename T>
consteval decltype (^^int)
foo ()
{
return ^^S::s;
}
template <>
consteval decltype (^^int)
foo <U> ()
{
throw 1;
}
template <typename T>
auto
bar (T x)
{
return x.[: foo <T> () :];
}
auto
baz (U x)
{
return bar (x);
}
More information about the Gcc-bugs
mailing list