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

            Bug ID: 126246
           Summary: possible erroneous warning (missing initializer for
                    member)
           Product: gcc
           Version: 16.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nerd.cpp at gmail dot com
  Target Milestone: ---

Created attachment 65030
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65030&action=edit
possible erroneous warning: missing field initializer

The compiler warns that `bar` is missing from the aggregate initializer, even
though the C++ aggregate-initialization rules default-construct it as an empty
std::string.

Please see attached program.

Reply via email to