From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id ED388383B6B4 for ; Tue, 6 Dec 2022 20:32:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ED388383B6B4 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-pg1-x529.google.com with SMTP id h193so14389923pgc.10 for ; Tue, 06 Dec 2022 12:32:10 -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=jhCOkctPuUHqAgU0SDxoKjPkDDqqAVmlyLxm4ZzCvM0=; b=hu03L61DfZ9QvWa99m0pKHRkXFLeCFDIoPuj1SDwVgcaCP/3bKHSb1WhvmSQCoP7Ny rWQv+1B5R3Xtvy8pUeaVV3PZei/nrz7/ejM015mluallBhjBzysuGGVGWaBSsxsYFzPm 4l8b3qIrH85ZsFm4ArAZDyo1qP7zazJ8fBY8JDQzPUuBKsvO0KfnnHYts5LridolHvbd bh7t/fgt9rbqRQI/8cCQ9PJIFLQw2v9B7W1KiWOJ95VHU1Kvlk+E3Czq7YKxgim1fRhR jszEs9796CWhIYPfWuEAGiwAIUgSYkjY4+3c5MLP4M1N46D9aIKucp3+dYvO0y2Sia8f WiDA== 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=jhCOkctPuUHqAgU0SDxoKjPkDDqqAVmlyLxm4ZzCvM0=; b=u39T9XagULw2RAJiP69vMZgR/t6sCSZcaPvssKZViskxpUV+FLGfcR/1wqUg6n0I6S L2PzQwz1bR/p0vLCt8M+iGh4dvz1NPzNHDPYiDSc03zcPLTCy3jTuh0hiLIoRknjMfQI UMkCmBl9bsratyFK37JYazlpft4lNdVDJlB9fp0TvrTzV/xj2BNmVG+zNmC43Z+OVZQN e/pVxdDfp9alUmtVxRHYGSrVkMDSDD1QnpPHqWlFb+EM56I3CnI6dZHlZUg8bsoIMGx3 KIsM6p73F5L/5ytw4KbkUBLdDaR34wouEIqGgCP+u5fs8fGPTHWvfnTixZaCmwMkLVtV jCEg== X-Gm-Message-State: ANoB5pnIJCJl5dt8s6Wh4NMOQ4YEODVbO+tDcg+dDL5XoRUYHwOqJDhq 5eROcqmdg9ZMdGiEqEb7xLlm5qkDpyFdgHcXx6U= X-Google-Smtp-Source: AA0mqf7911N9fl0e2VobCRpaiiXBCPP437qeJU2Lz1EfYGMjPP3bca4Qh/9s5NtnR684seqy8SAxqixP9sc39vM2Vb8= X-Received: by 2002:a65:5aca:0:b0:478:b2d5:d843 with SMTP id d10-20020a655aca000000b00478b2d5d843mr11411457pgt.415.1670358729926; Tue, 06 Dec 2022 12:32:09 -0800 (PST) MIME-Version: 1.0 References: <52ab45bc-cd6e-7acb-dc6f-9cddef4a926a@codesourcery.com> In-Reply-To: From: Gavin Ray Date: Tue, 6 Dec 2022 15:31:57 -0500 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: Jonathan Wakely Cc: Joseph Myers , "gcc@gcc.gnu.org" Content-Type: multipart/alternative; boundary="000000000000beabad05ef2eb29b" X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,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: --000000000000beabad05ef2eb29b Content-Type: text/plain; charset="UTF-8" Ah got it, didn't know that (handy, will save me duplicating a bunch of attributes). Thanks Jonathan! On Tue, Dec 6, 2022 at 2:23 PM Jonathan Wakely wrote: > > > 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. > > > --000000000000beabad05ef2eb29b--