public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104142] [9/10 Regression] Spurious warning unused-variable on const static variable and defaulted constructor Date: Thu, 12 May 2022 21:25:12 +0000 [thread overview] Message-ID: <bug-104142-4-w7SsKmF4OC@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-104142-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104142 --- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jason Merrill <jason@gcc.gnu.org>: https://gcc.gnu.org/g:cfa3a04be981f63af41f9a960df06e84c2634c5f commit r10-10729-gcfa3a04be981f63af41f9a960df06e84c2634c5f Author: Jason Merrill <jason@redhat.com> Date: Mon Apr 11 14:50:14 2022 -0400 c++: rodata and defaulted ctor [PR104142] Trivial initialization shouldn't bump a variable out of .rodata; if the result of build_aggr_init is an empty STATEMENT_LIST, throw it away. PR c++/104142 gcc/cp/ChangeLog: * decl.c (check_initializer): Check TREE_SIDE_EFFECTS. gcc/testsuite/ChangeLog: * g++.dg/opt/const7.C: New test.
next prev parent reply other threads:[~2022-05-12 21:25 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-20 8:42 [Bug c++/104142] New: [9/10/11/12] Spurios warning unused-variable phdiv at fastmail dot fm 2022-01-20 8:48 ` [Bug c++/104142] " rguenth at gcc dot gnu.org 2022-01-21 8:32 ` [Bug c++/104142] [9/10/11/12 Regression] Spurios warning unused-variable on const static variable and defaulted constructor pinskia at gcc dot gnu.org 2022-01-28 11:32 ` jakub at gcc dot gnu.org 2022-01-28 11:43 ` jakub at gcc dot gnu.org 2022-04-11 18:52 ` jason at gcc dot gnu.org 2022-04-12 3:58 ` cvs-commit at gcc dot gnu.org 2022-05-04 2:36 ` [Bug c++/104142] [9/10/11 Regression] Spurious " mh+gcc at glandium dot org 2022-05-04 3:26 ` mh+gcc at glandium dot org 2022-05-12 20:13 ` cvs-commit at gcc dot gnu.org 2022-05-12 21:25 ` cvs-commit at gcc dot gnu.org [this message] 2022-05-27 9:47 ` [Bug c++/104142] [10 " rguenth at gcc dot gnu.org 2022-06-28 10:47 ` jakub at gcc dot gnu.org 2023-07-07 9:55 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-104142-4-w7SsKmF4OC@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).