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 AE1F23858439 for ; Tue, 19 Jul 2022 14:14:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AE1F23858439 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-297-5-S8X9WwO_yUVk7WivuuVg-1; Tue, 19 Jul 2022 10:14:21 -0400 X-MC-Unique: 5-S8X9WwO_yUVk7WivuuVg-1 Received: by mail-ed1-f71.google.com with SMTP id m10-20020a056402510a00b0043a93d807ffso10000989edd.12 for ; Tue, 19 Jul 2022 07:14:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z9d3uSP41BqZDE4081LIms7+irAcnRG6GxBP/0RMPs4=; b=tRUTBDLf7V3Zb5F1n8DzPhyLJFUs4AwdGnQ8Cwqg9nrTdpjpElsKYwKM7dkqqiJkv5 VAkCI29UjG0TKqgAff0+VdwraAa3cUS4PU50vL0uwefw5ay2ZWfd2PjneELIu7hnpmLI EQ7xFe8AmPKnNdSZktChvTz5pVmPkLO/+r+Yny/G5Z6+j5YTjFmaULzmVIpGu0N2aKvV 53j8h6uGcWGFy08AkgQH1xGI4wN3jhGiGCQbCfCQXm1p2b3tAVyzCsNBRmUxj5r7iVNo ibnaGzcrxBeFeNragPxuDNt2HOXOVF/8aZPAt4TvBwCW+mA/eXDJevkJ/aZoJI7WM8hc DFxA== X-Gm-Message-State: AJIora+2nKtBcRw5D+ikFtiBEs2mzeklkC0byTCb3ChdpxLI78xpJTn7 0GMEaN/Emy9ftfhpKf3uW9lel15xCF05FPzMauJoSlqPci6aNPR1H9XPPHtQJJ9oGk7TIvlgJ/4 +scuM7Q+5kLDT3bCE23AiaCMmbFNp+/Hl1g== X-Received: by 2002:a17:907:2d12:b0:72b:67fb:89a5 with SMTP id gs18-20020a1709072d1200b0072b67fb89a5mr29642853ejc.507.1658240059864; Tue, 19 Jul 2022 07:14:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sYG3p2NW9Po+czZBQRs8QhWLduXYYnw+h3FmMGTPo3jP5aezSZhV0Hh4KdJ343/06OjwbQy1JHZSMoG1nab4M= X-Received: by 2002:a17:907:2d12:b0:72b:67fb:89a5 with SMTP id gs18-20020a1709072d1200b0072b67fb89a5mr29642844ejc.507.1658240059712; Tue, 19 Jul 2022 07:14:19 -0700 (PDT) MIME-Version: 1.0 References: <20220708174133.2462418-1-polacek@redhat.com> <7955e63f-c20e-482c-cea3-db0942ed0149@redhat.com> <16983f2a-f56a-1462-c2db-3e4bc6fa6ad7@redhat.com> <93e09683-22c9-9e13-9ae1-13c4b447f38f@redhat.com> In-Reply-To: From: Jonathan Wakely Date: Tue, 19 Jul 2022 15:14:07 +0100 Message-ID: Subject: Re: [PATCH] c++: Add __reference_con{struc, ver}ts_from_temporary [PR104477] To: Stephan Bergmann Cc: Marek Polacek , "libstdc++" , GCC Patches X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2022 14:14:24 -0000 On Tue, 19 Jul 2022 at 12:10, Jonathan Wakely wrote: > > On Tue, 19 Jul 2022 at 11:08, Jonathan Wakely wrote: > > > > On Sun, 17 Jul 2022 at 22:13, Stephan Bergmann via Libstdc++ > > wrote: > > > > > > On 7/15/22 22:25, Marek Polacek via Gcc-patches wrote: > > > > Yeah, I guess so. But I've already pushed the patch. > > > > > > This commit obviously breaks using libstdc++ with Clang (in -std=c++2b > > > mode), which doesn't implement those new builtins. Something like the > > > below would fix that, > > > > Thanks, Stephan, I'll fix this. > > This patch doesn't work, because __has_builtin doesn't detect the new > built-ins. I have a patch that solves that, so we can make the change > to the library headers. Should be fixed now, thanks for reporting it.