From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id 945C33871FAB for ; Tue, 6 Dec 2022 19:23:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 945C33871FAB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x62c.google.com with SMTP id fc4so8627332ejc.12 for ; Tue, 06 Dec 2022 11:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dcV0FYbYhN4g/JTUFvW89dAWboTi7uIAn6ugKuzm48c=; b=BSZVJjTOQZGZ8W7fVsVCUzckXFRefsD69dAkq1mnM2Ha5yIxvwEhcVVD6F2hsRnaRE ug85OGaFchD5etlIy0SE/bdbVi2aqU9kUT5mFruA1FiQtksYBkinpDP9CyK1ti16ohdi tRVqJP0odW7i3XHnzuseg7AbbVKo7sZhWXzuzOf4fKpMhVKbkLRsudxoBC8FTTHFlnvq bLFWjhvQZtSgAS2uCFP06qSh1Wu7V5EuPnTsfihBH4ugPjvXv9xVUfv5wOI4Z2/jlXAI rRkUvdOMZoXl+MAWWCVEwdqJW9I8TdqxGVo9iCi5H38X7cLyMwiGVC+MR/sJ7/kLWjVb cw0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dcV0FYbYhN4g/JTUFvW89dAWboTi7uIAn6ugKuzm48c=; b=j7UK3qTMs8lQGsdNJgYaF5Ylan2Eupj0bVZihPrzuRfQg2guzBh8cOzVVF/HO/Jlx9 UrRVsiusrKTqUpUzYJV9kfDAR/Xv6MXQKTrOyfLC8HblWfXToL02mCA7q7QDRY3Pn1V0 g8mpo4U0ywgYgXttv8yGrUSriu9Bs/akzASN2j6/J6LxBb+1UbGbcqz6XNH/SXiXtGJV vbEmEZkKZaYGKlDbnSrnZAbkWrkwgD0wyjETtsFmQ0wNPiCtLHHlm3o1BBtCuszmDzqa 7dCukWjXXZPiz8QD25H0kQk1c5OmvT6GeDucr3YfMZ/FN+COUweeWG9Ex7/Qxxrh7jMd KhbA== X-Gm-Message-State: ANoB5pkE+vULBxhVeENj5XZLLEcv5pKH+RQ9quJF/wBULd/ujYvfgqV8 arJid9yXnTZS/tOhJGmjLNLMgHtg0D3veP2UPZY= X-Google-Smtp-Source: AA0mqf4DywduHZ7Z/gUZPNMiF8tEYVLAXBkTQC2DZDhU+dvkIsB2/8PJGk2g06G1F1qmtST6WWIUvidYXeT0wdFvMas= X-Received: by 2002:a17:906:a38c:b0:7c0:d58f:3409 with SMTP id k12-20020a170906a38c00b007c0d58f3409mr2464210ejz.416.1670354627247; Tue, 06 Dec 2022 11:23:47 -0800 (PST) MIME-Version: 1.0 References: <52ab45bc-cd6e-7acb-dc6f-9cddef4a926a@codesourcery.com> In-Reply-To: From: Jonathan Wakely Date: Tue, 6 Dec 2022 19:23:36 +0000 Message-ID: Subject: Re: Using [[may_alias]] in C23/C++23 on a union works in neither post-"union" position, or at the end of the definition To: Gavin Ray Cc: Joseph Myers , "gcc@gcc.gnu.org" Content-Type: multipart/alternative; boundary="00000000000034c25a05ef2dbef4" X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --00000000000034c25a05ef2dbef4 Content-Type: text/plain; charset="UTF-8" On Tue, 6 Dec 2022, 18:36 Gavin Ray via Gcc, wrote: > Oh, D'oh! Thanks Joseph, apologies for the needless email on the list then. > > One final question if I could -- does that mean that in order to support > "may-alias" with the bracket syntax on both Clang and GCC, it would > require: > > union [[gnu::may_alias]] [[clang::may_alias]] foo {}; > Probably not. Clang accepts the gnu:: namespace for attributes that originated with GCC. --00000000000034c25a05ef2dbef4--