https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124950

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <[email protected]>:

https://gcc.gnu.org/g:edb4f451b6aaa6d6c6851f2cb83313f9c30c36e2

commit r16-8782-gedb4f451b6aaa6d6c6851f2cb83313f9c30c36e2
Author: Marek Polacek <[email protected]>
Date:   Mon Apr 20 15:55:50 2026 -0400

    c++/reflection: bogus -Wmissing-field-initializers with <meta> [PR124950]

    We emit -Wmissing-field-initializers warnings for code like

      data_member_spec (^^int, { .name = "dms" })

    which seems undesirable.  We can initialize the members of
    std::meta::data_member_options to suppress that warning (clang's <meta>
    has these initializers too).

            PR c++/124950

    libstdc++-v3/ChangeLog:

            * include/std/meta (std::meta::data_member_options): Initialize
            alignment, bit_width, and annotations members.

    gcc/testsuite/ChangeLog:

            * g++.dg/reflect/data_member_spec7.C: New test.

    Reviewed-by: Jonathan Wakely <[email protected]>
  • [Bug c++/124950] [reflection] b... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to