https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124950
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Last reconfirmed| |2026-04-20
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
Blocks| |123615
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think we want:
--- a/libstdc++-v3/include/std/meta
+++ b/libstdc++-v3/include/std/meta
@@ -423,11 +423,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
info _M_unused = {};
};
- optional<_Name> name;
- optional<int> alignment;
- optional<int> bit_width;
+ optional<_Name> name = nullopt;
+ optional<int> alignment = nullopt;
+ optional<int> bit_width = nullopt;
bool no_unique_address = false;
- vector<info> annotations;
+ vector<info> annotations = {};
};
consteval info data_member_spec(info, data_member_options);
consteval bool is_data_member_spec(info);
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123615
[Bug 123615] (c++-reflection) - [meta-bug] reflection issue