Message ID | 20231025130429.107577-1-ppalka@redhat.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp2584412vqx; Wed, 25 Oct 2023 06:05:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSd8uIC82BUxFG2usZS5QL9XJxGr4dzlrB5PYN93B+lUS+rZxeELzDOzwFdvIpWtyrhrat X-Received: by 2002:a05:6214:508f:b0:66d:55b7:e3d with SMTP id kk15-20020a056214508f00b0066d55b70e3dmr18595833qvb.28.1698239132064; Wed, 25 Oct 2023 06:05:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698239132; cv=pass; d=google.com; s=arc-20160816; b=A32nSMoGEYNe9TcleLyNL+AIqO8X8c5kZ2SdxH/krMvQ15jztXFgyOR41isWDlbhyn xz1x6TQDwSpauIzUf/R/RWNcef+az57AV1o1NL+c2xxN94r7QEVBquVuTryb9xm0ag6q aFoJ0CsgmF0hnXf8TbkS9RwIN5fBLBnVJECtFSufllhjyT/xHZHFHM9CexT7F+uZ6RPo FXLNnah71IuvXMGpC+zk979Srt16MHW/yynlWFxXn4sHpthkuXdhWNlGIhvCH1mY5EjD ldmZXsZmnOKeGRN4SIMYe0TlFujV0QhUiQ9yF2KjhGX+QQYuMJ5cY52aBpUsXkJ1O7gV 23ZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=8MruZvGoZ5JEn3B0uorMvk/lXOtGoIuaOGHmQpfefyk=; fh=1Hi9m88IqcWZGtfSxUrMGG+GBgL26N02X1SANXM6iTs=; b=GaDch48+cAylqnrJe0uAlLweEKb1a52NN6Jlz/Em0tMoOpqTfHrmLRuXhzcFaMGJZW hma/QC9b58drN8r9ucqoqyIut+NlHAsl4smUXMhjhHVflKVV6e1I72EvEoA83X44d2Rz iU0TzKjPrjyqXW0K+Xbf13zkwh4dtkPOABGsfMT5m0HfKbSbAZNYZzaCgwQrdHCVJ1XX l2aqvGJ4cZmRaHFOLABPBSWY1DLJP5DHidRVSWPVtH3O8wBEdQ42HjdT29ncgCJPouNn OJNU+08ImPhFK78TaCYdJefk2NUR0jh452bxWaeXkO5YwBYrb3jvxeonesL8cZKYqtFr eAng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=icEQgAtt; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ee15-20020a0562140a4f00b0066d02899548si8449377qvb.34.2023.10.25.06.05.32 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 06:05:32 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=icEQgAtt; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CD3A43856DE8 for <ouuuleilei@gmail.com>; Wed, 25 Oct 2023 13:05:31 +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.129.124]) by sourceware.org (Postfix) with ESMTPS id CAC803857C44 for <gcc-patches@gcc.gnu.org>; Wed, 25 Oct 2023 13:05:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CAC803857C44 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 CAC803857C44 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698239108; cv=none; b=TPPXit8yRBQ9pILwvcd+1EjdPJn/TeSdWtir1xH5LKE332jOB6agy114O5qFJFu4lOt+tQx2bhN9ynAKrk3Afs3TLhlbEU6cM1+A+Q1vbsz4JzyLec4ivNPrd/gTLPX55DoJBYpz7pej5awdHBKFR97wlvSRe5idvgxI+Id0GL8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698239108; c=relaxed/simple; bh=4HLPq9V/aX6emwizPbDH65/nCY2JFVqPc1aECcSN9Zc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=WSLFGazj01lYXxW2gbsHxPZK8V0NrL2mO5jUAe++H0+ETZ4t9vpQteiwGjsp6P3P25MTB1XNV3i+A91Qa7bO+bKCXxzGuh4fm2HW8uyDy8uxuyW+aykienH9oUP1QgULqfuhCmt8jHNH5MUqlOZOYCaGoIxLf7GuwYaORvC9mUk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698239107; 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: content-transfer-encoding:content-transfer-encoding; bh=8MruZvGoZ5JEn3B0uorMvk/lXOtGoIuaOGHmQpfefyk=; b=icEQgAttNtuQDAHwWDPV9XlnGgNaV93wxz74hpUAZOoRgyW8E7VIdvVFiK8q/bZ27VLtxE /8XRCuCJNDSBLJvaja/7Je+OV3yLyuON2wxfa+5JH8FnedDbuewnLO5yCOn7XVYsNUg9jS lqEIHBbwDiV0po1hNOrWBw6GAVZK7bM= Received: from mail-oo1-f69.google.com (mail-oo1-f69.google.com [209.85.161.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-275-PacfbdvxMqSpQf6O1x9PLQ-1; Wed, 25 Oct 2023 09:05:05 -0400 X-MC-Unique: PacfbdvxMqSpQf6O1x9PLQ-1 Received: by mail-oo1-f69.google.com with SMTP id 006d021491bc7-581e2c9197bso7692455eaf.3 for <gcc-patches@gcc.gnu.org>; Wed, 25 Oct 2023 06:05:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698239104; x=1698843904; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8MruZvGoZ5JEn3B0uorMvk/lXOtGoIuaOGHmQpfefyk=; b=D1IYtR3WBZj+AvyRUquh01MVFZHPKAe3jmVweQOdj6Ml4I/wX1BAo1pwMXen3pt1/p XvuUl4SfvmYQvA+Ihn6kRCpNY9Sd70Lfc9rk7VfjHpKcGQ7vn4no/h0x1Vd5uffswmD/ a8Zap0rWJuNqSJRRjhoj4E7wFAHGeVSrC1pwdeSHYyUCqXlJ4iyaTHJ4zWIcVMMfWz+o a+9e1I2WmDVw2dn+PWS7JS65zhSC47Am54500C9tefu1dHGbLPexIk2/w0+c3Zq/k+qi ePS07oPx1tyVGwo92LCW9IIUYXxMU+ONfOzGKst/E1qmQ0FFECdKrnx8cedS+xjf7LXc sSCg== X-Gm-Message-State: AOJu0Yy9j93uVf70yzIgPAme9LaIgtLBNMuv6quQuQK+Lg+rrnQG7Ah7 DwqVRmvG3w9gYiBGgY+CAxTfXxLRCtRuWdgNk8yAvO4Eq5GdiL5q4lUO3M2nnK84wdiaCyjajD8 a9QJXnN0uFc/vpt7t4PLFKNhx0L+0Yu7v9/ZfnTtfktfQjHJrZ7WO0oD5HwdNs1Gi2OtOr7OkCL w= X-Received: by 2002:a05:6870:ed91:b0:1dc:9714:e2b3 with SMTP id fz17-20020a056870ed9100b001dc9714e2b3mr21132263oab.7.1698239104044; Wed, 25 Oct 2023 06:05:04 -0700 (PDT) X-Received: by 2002:a05:6870:ed91:b0:1dc:9714:e2b3 with SMTP id fz17-20020a056870ed9100b001dc9714e2b3mr21132232oab.7.1698239103679; Wed, 25 Oct 2023 06:05:03 -0700 (PDT) Received: from localhost.localdomain (ool-457670bb.dyn.optonline.net. [69.118.112.187]) by smtp.gmail.com with ESMTPSA id dr20-20020a05621408f400b0065af24495easm4419735qvb.51.2023.10.25.06.04.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 06:04:53 -0700 (PDT) From: Patrick Palka <ppalka@redhat.com> To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com, Patrick Palka <ppalka@redhat.com> Subject: [pushed] c++: add fixed testcase [PR99804] Date: Wed, 25 Oct 2023 09:04:29 -0400 Message-ID: <20231025130429.107577-1-ppalka@redhat.com> X-Mailer: git-send-email 2.42.0.482.g2e8e77cbac MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-13.6 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_H4, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780732795996988363 X-GMAIL-MSGID: 1780732795996988363 |
Series |
[pushed] c++: add fixed testcase [PR99804]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Patrick Palka
Oct. 25, 2023, 1:04 p.m. UTC
Tested on x86_64-pc-linux-gnu, pushed to trunk. -- >8 -- We accept the non-dependent call f(e) here ever since the NON_DEPENDENT_EXPR removal patch r14-4793-gdad311874ac3b3. I haven't looked closely into why but I suspect wrapping 'e' in a NON_DEPENDENT_EXPR was causing the argument conversion to misbehave. PR c++/99804 gcc/testsuite/ChangeLog: * g++.dg/template/enum9.C: New test. --- gcc/testsuite/g++.dg/template/enum9.C | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/enum9.C
diff --git a/gcc/testsuite/g++.dg/template/enum9.C b/gcc/testsuite/g++.dg/template/enum9.C new file mode 100644 index 00000000000..c992cd505c2 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/enum9.C @@ -0,0 +1,12 @@ +// PR c++/99804 + +struct S { + enum E { A, B } e : 1; + void f(E); + template<class> void g() { f(e); } +}; + +int main() { + S s; + s.g<int>(); +}