From patchwork Sat May 12 17:37:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ville Voutilainen X-Patchwork-Id: 912426 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-477607-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="xPRi5uyz"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40jvLC0w43z9s1d for ; Sun, 13 May 2018 03:37:36 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=KxR7iFva8oNc22/0N5kyFCGJ0M/OY23Qsi1PFs8znuH5yf /5nNBA+ZbMnGHqM5X9L1yWd3zdFRuzBjRKUhmOEROhG4NbnjV7IRzw30dHYI5c1o PK/bC2/k6cD6cqO36gLkcaYHAMqtVC46ThKl3pR2NILvwzbbI+P3taULOvsuM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=5H9Qjrvi4c8NgbleBvd/m8k7WHY=; b=xPRi5uyz4K/NasMjdRvh KljF2HSDAiCx0le1g8X7fZrDeBms6skgPtp276mxBYzT4zscklAedy8adPqjKuV0 LCBOOWuO5SLq3SoMkUgxMSSSf5Z8btVye62oiyuSijozsPioigWWWDxfrcc4I6US QTP33tPbhbEcE4SdzpJKQpM= Received: (qmail 118091 invoked by alias); 12 May 2018 17:37:28 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 118056 invoked by uid 89); 12 May 2018 17:37:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=20_util X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-ot0-f178.google.com Received: from mail-ot0-f178.google.com (HELO mail-ot0-f178.google.com) (74.125.82.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 12 May 2018 17:37:24 +0000 Received: by mail-ot0-f178.google.com with SMTP id l13-v6so9860362otk.9; Sat, 12 May 2018 10:37:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FESmJijZgdA7mq7GAf89U5mSCdcfJBC0Lj4chhpf14o=; b=BcM0KiA6eJw+TY6yh3frnRVmzgaEC52SKJf1gxCRSRA1zx3Ay3b8zBLJZ1g2f8j1O+ nSp16JjAbzfHD1v+Xs3KYtJ+loDdYtGl5bbCXIdOTBwtbfnrnWoWzlYa/isaJrP5BaCw G5429+r3aVz7T34S0PkY8H2c5UAW/uRV/dS1iSZkPfw8UWzcs/kwf4JmBv+6ENncKUAr qNx4b9sJ+rYlV3nBanQ/9/8XBV1CgyaWb0M3lXOW2XOZY/orUWCLFcDQsmtsT3QnlEMN ZYFa3yrE2oWKlBZC3ew701UJ2PLWOyIw1LOIq4yTnahNhtNUFwmAtTYgqusfmIwkEo1n 3gLw== X-Gm-Message-State: ALKqPwdjmo9EY80GjTH3eDfmXMIIleZA0yc91CHu36TbPom2vJvczL4Q qgbjchGp2aU3Mh6bARTkih4qLOokOpLCQ82sG0qywA== X-Google-Smtp-Source: AB8JxZrkIKTrZMWFaVw+PboSQHOZDY2vPkjHOHMY/QwBjwU4xKOnWerJ3EaMnPHbHVmFiOM+nuOaETp8U0Ux4umutCo= X-Received: by 2002:a9d:330b:: with SMTP id f11-v6mr2123903otc.299.1526146642659; Sat, 12 May 2018 10:37:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:8f6:0:0:0:0:0 with HTTP; Sat, 12 May 2018 10:37:21 -0700 (PDT) From: Ville Voutilainen Date: Sat, 12 May 2018 20:37:21 +0300 Message-ID: Subject: [v3 PATCH] PR libstdc++/80165 To: gcc-patches List , "libstdc++" This just adds a missing test. The bug was in variant, not tuple, so I added the test under variant. Ok for trunk (this is not going to be backported)? 2018-05-12 Ville Voutilainen PR libstdc++/80165 * testsuite/20_util/variant/80165.cc: New. diff --git a/libstdc++-v3/testsuite/20_util/variant/80165.cc b/libstdc++-v3/testsuite/20_util/variant/80165.cc new file mode 100644 index 0000000..add976c --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/variant/80165.cc @@ -0,0 +1,12 @@ +// { dg-options "-std=gnu++17" } +// { dg-do compile { target c++17 } } + +#include +#include + +int main() { + using variant_t = std::variant; + constexpr auto variant_v = variant_t{std::in_place_index_t<0>{}, short{}}; + constexpr auto tuple = std::make_tuple(variant_v); + constexpr std::tuple tuple_v{variant_v}; +}