From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 4615A3858D33 for ; Tue, 7 Feb 2023 16:37:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4615A3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675787832; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TNMi0SE41/Lv0apJIh0lnZEt6UvHJ2BxlxlEZzJdju4=; b=ZzoZg6v9nS37Uh+WluVFKvN7iDemzUd4gyIRtKpwJRiKoDYqk8UkyzLLF1dhH2IEGDDxia gYWB1Y6LIpCSSPVP5zfC0zsSardeFp9hvXPovfNf3aac8iGUApac159FX3V2/AxTJQ+cFM VKrjOlHugsYE7ndK5pYgd9mDE5mTYMo= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-157-p3TT_X4OOISfPSACW_SUOw-1; Tue, 07 Feb 2023 11:37:11 -0500 X-MC-Unique: p3TT_X4OOISfPSACW_SUOw-1 Received: by mail-lj1-f200.google.com with SMTP id f3-20020a2ea0c3000000b00292fe8261ccso1816776ljm.21 for ; Tue, 07 Feb 2023 08:37:11 -0800 (PST) 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=TNMi0SE41/Lv0apJIh0lnZEt6UvHJ2BxlxlEZzJdju4=; b=Sam2/9XZsyZxsS+1G+20kLKUYlRwrs7/R7ZrkGhail1VPrHKbEz8XFLCNJVN57LXyU 65EdsUFUrXUpiYsoi30KplAQ0XwSIkVmakKYHIv7jo/JrLMY1iol6j5p9L4kRoVyhRzW PM5AlfUzj+9nwUYWm1cV8vhbmno7FdpcFomnNX3yJLlULJ5VQlxkdyOsgqIAIIbPeGkG Ec8KAb7XMXY4yxWz9n19/fBCPs8TOod/x7vuKV/+DuiZ5/v7F40wJS2OlRWVZ43Q8qcZ tP3fK0zelDTADJu7+sehhGoGdg3v2CgjnNM/fUV7Z8tTk9eamGifJ6ZClED/n4lctUlg VC2A== X-Gm-Message-State: AO0yUKX/BIZrSGiDXWCcVxx0jngER2Yqg+6hcTvoDsTYK4IuwrB0jVfo ouMCj47l+Rz/WsSxrgRxRBVHFmfLQBz/x8/HpSckOw3L7wUPfUzkSkKPrzOadPRupPHTr3P/nHc eBAKcseMdTgiRMyVv4XlZmCShfIf9enmWBQ== X-Received: by 2002:ac2:42ca:0:b0:4c9:af8b:ebe5 with SMTP id n10-20020ac242ca000000b004c9af8bebe5mr631576lfl.232.1675787830084; Tue, 07 Feb 2023 08:37:10 -0800 (PST) X-Google-Smtp-Source: AK7set8b+C9sw69FJheeMixhpTrwX+rdqjfOZqUK6KcCJi0VTnJp/pSFqsdHwkEu/vuweDAB6oC2xXoRRZPZLAhZZAk= X-Received: by 2002:ac2:42ca:0:b0:4c9:af8b:ebe5 with SMTP id n10-20020ac242ca000000b004c9af8bebe5mr631570lfl.232.1675787829852; Tue, 07 Feb 2023 08:37:09 -0800 (PST) MIME-Version: 1.0 References: <20230206142601.2970070-1-jwakely@redhat.com> In-Reply-To: From: Jonathan Wakely Date: Tue, 7 Feb 2023 16:36:58 +0000 Message-ID: Subject: Re: [committed] testsuite: Expect -Wdeprecated warning in warn/Wstrict-aliasing-bogus-union-2.C for C++23 To: Jakub Jelinek Cc: Jason Merrill , gcc-patches@gcc.gnu.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 7 Feb 2023 at 09:25, Jakub Jelinek wrote: > > Hi! > > On Mon, Feb 06, 2023 at 02:26:01PM +0000, Jonathan Wakely via Gcc-patches wrote: > > With the recent change to deprecate std::aligned_storage and > > std::aligned_union we need to adjust some tests that now fail with > > -std=c++23. > > The g++.dg/warn/Wstrict-aliasing-bogus-union-2.C test is also affected: > PASS: g++.dg/warn/Wstrict-aliasing-bogus-union-2.C -std=gnu++2b (test for bogus messages, line 12) > FAIL: g++.dg/warn/Wstrict-aliasing-bogus-union-2.C -std=gnu++2b (test for excess errors) > Excess errors: > .../gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-union-2.C:8:8: warning: 'template struct std::aligned_storage' is deprecated [-Wdeprecated-declarations] > > The following patch adds dg-warning for it. > > Tested on x86_64-linux -m32/-m64 with GXX_TESTSUITE_STDS=98,11,14,17,20,2b , > committed to trunk as obvious. Oops, sorry about that - I must remember to check the g++ tests for any header and deprecation changes.