public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/111067] g++.dg/opt/icf{1,2,3}.C tests fail on darwin Date: Mon, 21 Aug 2023 12:53:21 +0000 [thread overview] Message-ID: <bug-111067-4-5A6OorD8qR@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-111067-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111067 --- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> --- clang on Darwin rejects the code thus: $ ./bin/clang++ /src-local/gcc-master/gcc/testsuite/g++.dg/opt/icf1.C -o i1 -std=c++14 /src-local/gcc-master/gcc/testsuite/g++.dg/opt/icf1.C:5:3: error: 'no_unique_address' attribute only applies to non-bit-field non-static data members 5 | [[no_unique_address]] extern const int i[] = { 1,2,3 }; this seems to agree with the current WD: https://eel.is/c++draft/dcl.attr.nouniqueaddr "9.12.11 No unique address attribute [dcl.attr.nouniqueaddr] 1 # The attribute-token no_unique_address specifies that a non-static data member is a potentially-overlapping subobject ([intro.object]). No attribute-argument-clause shall be present. The attribute may appertain to a non-static data member other than a bit-field. " since the objects in the test case are not non-static, non-bitfield data members, any application of the attribute would be a GCC extension, I guess? What is the intent?
next prev parent reply other threads:[~2023-08-21 12:53 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-08-18 17:50 [Bug c++/111067] New: " fxcoudert at gcc dot gnu.org 2023-08-18 17:51 ` [Bug c++/111067] " fxcoudert at gcc dot gnu.org 2023-08-18 17:57 ` [Bug testsuite/111067] " pinskia at gcc dot gnu.org 2023-08-19 20:17 ` fxcoudert at gcc dot gnu.org 2023-08-21 12:44 ` iains at gcc dot gnu.org 2023-08-21 12:53 ` iains at gcc dot gnu.org [this message] 2024-03-07 23:37 ` [Bug c++/111067] " iains at gcc dot gnu.org 2024-04-02 20:01 ` redi at gcc dot gnu.org 2024-04-02 20:18 ` iains at gcc dot gnu.org 2024-04-02 20:41 ` redi at gcc dot gnu.org 2024-04-02 20:42 ` pinskia at gcc dot gnu.org 2024-04-02 22:04 ` jason at gcc dot gnu.org 2024-04-02 22:31 ` iains at gcc dot gnu.org 2024-04-02 22:47 ` jason 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-111067-4-5A6OorD8qR@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).