From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 00E5D3858C3A; Wed, 19 Jul 2023 20:31:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 00E5D3858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689798720; bh=VaKsNfEvpTyzWtS151pb/U1Reqlu2Xxtyi9GWGSW/d8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WgZQdXKHrKUPFIR9H/8o9fJJd0LZ8/dKpJv7aPtzX2ZlGrzudDn3eu5UKO0pxsOtf 9aIuxut4YQJ3nRN40kb0mWo/llmBoRJ/H9h+PV6hPzV52jegaXWdg9l3ORos2fuPmE FJO7gZ7fgJuUHQCA+OyEvOOFsD2NbpBbPyTmP5H8= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110064] spurious missing initializer for member for anonymous Date: Wed, 19 Jul 2023 20:31:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110064 --- Comment #3 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:b1ae46bdd19fc2aaea41bc894168bdaf4799be80 commit r14-2657-gb1ae46bdd19fc2aaea41bc894168bdaf4799be80 Author: Marek Polacek Date: Wed Jul 19 13:31:52 2023 -0400 c++: -Wmissing-field-initializers and empty class [PR110064] Let's suppress -Wmissing-field-initializers for empty classes. Here I don't think I need the usual COMPLETE_TYPE_P/dependent_type_p checks. PR c++/110064 gcc/cp/ChangeLog: * typeck2.cc (process_init_constructor_record): Don't emit -Wmissing-field-initializers for empty classes. gcc/testsuite/ChangeLog: * g++.dg/warn/Wmissing-field-initializers-3.C: New test.=