From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79CDC3856DCE; Wed, 19 Jul 2023 20:09:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79CDC3856DCE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689797353; bh=tMwFjhGn5AVflogTUDd3Gx3YtisgWOwETOgkLQGafdY=; h=From:To:Subject:Date:From; b=JHstVwwUZTCkpzO2iOcpjNTXWcuT9GsxRWktlVPxgbviPazEeBgSiuJAlEcEf7MT7 9+4IJuc9IGk3OL7MBbcKbITSfAVlyHp75MsHTlmt6rwmBKYljPEV0/yzCh6braN0Fe 9poaX6z+V7a2g2MD68vSj9OfllgPyzUb6lyP419c= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110745] New: Improve printing of base classes Date: Wed, 19 Jul 2023 20:09:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D110745 Bug ID: 110745 Summary: Improve printing of base classes Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- Prompted by : struct B { int i; }; struct D : B { int x; int y; }; int main () { D d =3D {.x=3D1, .y=3D2}; (void)d; } $ ./cc1plus -quiet q.C -Wmissing-field-initializers q.C: In function =E2=80=98int main()=E2=80=99: q.C:10:20: warning: missing initializer for member 'D::' [-Wmissing-field-initializers] 10 | D d =3D {.x=3D1, .y=3D2}; | ^ We should be able to say 'D::B' instead.=