public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gcc at alanwu dot email" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/101265] C2X [[maybe_unused]] ignored when placed after array declaration Date: Thu, 01 Jul 2021 13:21:45 +0000 [thread overview] Message-ID: <bug-101265-4-p2PCVta49a@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-101265-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101265 Alan Wu <gcc at alanwu dot email> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #4 from Alan Wu <gcc at alanwu dot email> --- Thank you! The key paragraph in N2596 seems to be 6.7.6.2p3. I also reached out to Aaron Ballman for clarification. gcc is right to ignore the attribute in this case. g++ accepting the attribute is potentially an issue, since the C++ spec has similar rules ([dcl.array]p3). Clang accepting the attribute also seems to be a bug. There is now a ticket for it: https://bugs.llvm.org/show_bug.cgi?id=50954
prev parent reply other threads:[~2021-07-01 13:21 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-29 20:09 [Bug c/101265] New: " gcc at alanwu dot email 2021-06-30 16:54 ` [Bug c/101265] " joseph at codesourcery dot com 2021-06-30 22:17 ` gcc at alanwu dot email 2021-06-30 22:59 ` joseph at codesourcery dot com 2021-07-01 13:21 ` gcc at alanwu dot email [this message]
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-101265-4-p2PCVta49a@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).