From patchwork Tue Oct 22 21:56:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Merrill X-Patchwork-Id: 2000675 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=fBoHGqXs; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XY5cL0F33z1xtp for ; Wed, 23 Oct 2024 08:56:48 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 722273858D39 for ; Tue, 22 Oct 2024 21:56:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 4985A3858D21 for ; Tue, 22 Oct 2024 21:56:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4985A3858D21 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4985A3858D21 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729634186; cv=none; b=dm9NhnU5igKGeiv835AGPwo0t2otkBm0EylyV6NNx216u2l1LDWUxmjhmnHesWf346F97eMFJqdyEC+FWAGJ6RsEmKFVYtZJ1xTX+C8qhyVaiF+ETf/Q/wy9dHpUzON3ihAMMblZoCrmVh1fZA28RZNG16pU/NjxlYSxj7ofkyc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729634186; c=relaxed/simple; bh=c+EA5YEoSu1x61ZWocfe375wyEzuFmG52h3ILrjM4JI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=hOx9JrOh6/mHGu8FOZk0h2SVSKZ50e7hctoFyom+V0qX0h6HgIF9QjwbY0jwHv5d2AL5F8qi5LaZusWDiIMMHO01OMSMlQR82olArwNXfDQnY7E9/Gng1eLWJax9cMvOPd1OODVM7Z/89FH7YPECwcV1tftL8ecExFimVhK572M= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1729634184; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cCE7gk0sr8Y6nQKyV9ys1HmPr9BtcBAiWf6nN9VoAb0=; b=fBoHGqXsurhe2wL4l/TPFDTdYRs57e+JLZ6qvkgF/DCSjraRySs2MFnXJvsgpgzv+kvaEE gtrBjcCkSiMPEU3HwjoLGF4vB2GK2mv98/oZECnDVPQ4SSryR25hNuoVTvcLfA9w9H+VNP Rwhqb6XArK5CkZG3JN1kreTX7tFwpDY= Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-422-auTZc1M5P52QoBvqs73fyQ-1; Tue, 22 Oct 2024 17:56:22 -0400 X-MC-Unique: auTZc1M5P52QoBvqs73fyQ-1 Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-6e1fbe2a6b1so110005447b3.2 for ; Tue, 22 Oct 2024 14:56:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729634182; x=1730238982; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cCE7gk0sr8Y6nQKyV9ys1HmPr9BtcBAiWf6nN9VoAb0=; b=PkYtIwxuwldITOBigCEzdeQA7vt4ywpTcKyK43BMDnpRgrLy6v+SlTOfWcFuIUHyd1 uLRRuRkFbkmAHJHmD8C5vQZ26JQfipLJg7YPzdnhLX3A8ghOaPCbqR6cbGqSxRGNYube 4KAyB1dBl+9tk3AvXG09QPPdgC9Wzqkcqrh07TbbIpB5aR3EFpEg5FCEaENYLSj/dC0S 8RXtbDKebOPU4b7o9ZYKmbt9k1lT4p6OpVItgWkhOMwWfExRDpwYOmVn9tVVq9KpMLWD 4uqzGI/44SeGmjfLqjJCln9mV/leXjA4QEm9fZvB6nKPTCRakfVeyPrcV3zh98efPfe1 e4+g== X-Gm-Message-State: AOJu0YxdMW2emUfivQnx3uWdtgCYyNVDXEw6c3Q2N9E/zRKQRlKzRb8E nF0FNje+L7iHouW91DTgPYbc5mAjJMm0JatgMX2JyM7TBPzTJIoT+YkXAx2lP5rVR1C9mZq4UTg sPCrJHoyOy4vIxfsUHI18seg80UmMkHghrfp/x9tK5QiYUC4Si85q6VVIsxIuXPNBeiSRpYQhdE Jx0BUz81SMgeDPY0gFFzrXrBv4UD4t1yBGTXA= X-Received: by 2002:a05:690c:7010:b0:6e7:e68b:f883 with SMTP id 00721157ae682-6e7f0fc5d0dmr6260437b3.39.1729634182122; Tue, 22 Oct 2024 14:56:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEBQD/8Z7qEsAJdnGfg/EdjsFniFwpX7vDgZXB32Y3nCH+M/Ys7wuPXVRYeRDzuRdB7GrTAQ== X-Received: by 2002:a05:690c:7010:b0:6e7:e68b:f883 with SMTP id 00721157ae682-6e7f0fc5d0dmr6260127b3.39.1729634181709; Tue, 22 Oct 2024 14:56:21 -0700 (PDT) Received: from jason-thinkpadp1gen4i.rmtusma.csb (130-44-146-16.s12558.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com. [130.44.146.16]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6ce009dcfbcsm33028216d6.107.2024.10.22.14.56.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 14:56:21 -0700 (PDT) From: Jason Merrill To: gcc-patches@gcc.gnu.org Subject: [pushed] c++: add testcase [PR116929] Date: Tue, 22 Oct 2024 17:56:06 -0400 Message-ID: <20241022215619.2120284-1-jason@redhat.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- This testcase was fixed by r15-822-g0173dcce92baa6 . PR c++/116929 gcc/testsuite/ChangeLog: * g++.dg/modules/enum-14.C: New test. --- gcc/testsuite/g++.dg/modules/enum-14.C | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gcc/testsuite/g++.dg/modules/enum-14.C base-commit: f191c8301545658543773ba3d0e6f3f0927529e0 diff --git a/gcc/testsuite/g++.dg/modules/enum-14.C b/gcc/testsuite/g++.dg/modules/enum-14.C new file mode 100644 index 00000000000..636d797afdc --- /dev/null +++ b/gcc/testsuite/g++.dg/modules/enum-14.C @@ -0,0 +1,6 @@ +// PR c++/116929 +// { dg-additional-options "-flto -fmodules-ts -Wno-global-module" } + +module; +enum { e }; +void hexdump() {}