Message ID | CAOfV4GcBnEByQGw8E4GeNpifU+T-bbRGXy09c91HCpOGx_OTeA@mail.gmail.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:b5d6:b0:2b9:3548:2db5 with SMTP id v22csp506053pxt; Thu, 4 Aug 2022 09:55:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Td1qB4SJVRLuo8t7voagnnRH7iPz13XJpbsFW0lNqdP8nie0aoQFbroowUEeluitUM83O X-Received: by 2002:a05:6402:274b:b0:43b:f23f:e011 with SMTP id z11-20020a056402274b00b0043bf23fe011mr2991133edd.259.1659632146021; Thu, 04 Aug 2022 09:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659632146; cv=none; d=google.com; s=arc-20160816; b=Yx7343nyxuFEFqwi3523s7a1mpR8VG7MT85fkBzaLDwFWnrMKjajnUE+Ba8+xyPixX WdvcaiNPXab9mczMjs4EFWgBEXpigjeMHfMZWbTxUpLB8OYjILP3CobASGC+6B4vHCyr HyH3x01HniFLQrOMww/kLMgIe+Ou9QIlZLk3Wg7jUN9HLXap8Nfs//a1NpYBGRNqsUQp UP8+TSxlhgR+7G3nXISumhXZaYLdPFlv+Wr/ZtGq+X3/KXlbre38BjkZxH+KabgtxNLm aTyhyammLZ3LLizorPx/x/uelh8aC2ezgqQQmjtQuP8MhylKG98KkZD+uCKuG9+vvY5m 3DzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:to:subject :message-id:date:mime-version:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=tENL8z+qqhwt2ONQOI802bmf8pOP38rXypFyUPf3gUM=; b=X3y40C8eq7k44CM990HdUCqKnvjSqnIvKag1esKpZmhizo/YipYsOtAEiRtmlf+kUj 7UadmFMDPjNhEE0dxAUlwE5Pes7HFuJMqe4r3Wj6YK8X/alj273Jx5UUpCzvRaYuAU/q ftB7PoA2a1v7CjMnFCKWbfvpn4G58D8OGy+4jfySQdLN9uHvEw04XqAvNuHnWv18FZyR wwfMmvWVC3jPiFVvAGEgsrQBmE1IpozKgmqy6F4pulbNORIBhQ4ejVB3DAtTN8QERl7Z TuQFKsrEakKG9Grc1tn20AdgyP3Mc/xf569YwLG1b30lHk3J89MKZ8WNEnluz5BKwIaP WNYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="GkrH/tET"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id s29-20020a50ab1d000000b0043dbfec592bsi1645063edc.334.2022.08.04.09.55.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 09:55:46 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="GkrH/tET"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AEA5D3857BAB for <ouuuleilei@gmail.com>; Thu, 4 Aug 2022 16:55:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEA5D3857BAB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1659632144; bh=tENL8z+qqhwt2ONQOI802bmf8pOP38rXypFyUPf3gUM=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=GkrH/tET7XwJEaQ3X6jf9UO/rC6kk3NkmIc6efYD1XZaUAw607Wx+2B9OMTe3jK7Y d4u+MQs5mz31VBqMAuskh2YYbkARetJLtkJAIPBkM9R5lXARMgXGGVWFsrxS4YocUz 60CvoWUvTGkuoDM3eJg/vqx1alnD1ZIQzuYRsweo= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by sourceware.org (Postfix) with ESMTPS id 0B9653858407 for <gcc-patches@gcc.gnu.org>; Thu, 4 Aug 2022 16:55:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0B9653858407 Received: by mail-yb1-xb31.google.com with SMTP id o15so33770546yba.10 for <gcc-patches@gcc.gnu.org>; Thu, 04 Aug 2022 09:55:01 -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:from:date:message-id:subject:to; bh=tENL8z+qqhwt2ONQOI802bmf8pOP38rXypFyUPf3gUM=; b=01pOp9Za7aJXw2msecVlaEFnLHZjCBrCZBClAitj1gkFDBg94yPf9bBYo+EUd2Y9wo +xOTQJOEdylg3x4oDWo3iww4McJkvqFmbOy1cZW4Zp2TDEEhF5ucwVOMB9IUIV46gGb+ R9szxUfHHW+AjBV1tgjoaeuNMIDpFGPVbciZNgd9bsjZUlkmzAmgKDPAoKW96WE6Z1j7 jEwFvvZsu5YIyl1exr4OAVpD3AfMd1ONludOKRRY3/aGJF7QT1GuwxW/bkXoUMAiUg+u efHsY15kiCV8q4ti+G1gPF5ae7W8jOzDHnKDScgjXCPEhyWblwjgeGXWBwRP8RXdRYid hXZg== X-Gm-Message-State: ACgBeo2GHs/xzZjh47yUWxZtniFUWEO3Q0DL970l4P72M6yt/cW1fT8r K7JxM27Jr0f3cFhLhcKZdybvh/wKGjRBEFnMMPyYx5PvLfI= X-Received: by 2002:a25:7c86:0:b0:677:4188:586a with SMTP id x128-20020a257c86000000b006774188586amr1965138ybc.587.1659632099975; Thu, 04 Aug 2022 09:54:59 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 4 Aug 2022 12:54:48 -0400 Message-ID: <CAOfV4GcBnEByQGw8E4GeNpifU+T-bbRGXy09c91HCpOGx_OTeA@mail.gmail.com> Subject: [PATCH] libstdc++: Fixing Error: invalid type argument of unary '*' (have 'int') To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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 <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> From: Seija Kijin via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Seija Kijin <doremylover456@gmail.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1740250437075721797?= X-GMAIL-MSGID: =?utf-8?q?1740250437075721797?= |
Series |
libstdc++: Fixing Error: invalid type argument of unary '*' (have 'int')
|
|
Commit Message
Seija Kijin
Aug. 4, 2022, 4:54 p.m. UTC
Had an error compiling tiny-cuda-nn using gcc 12.1. With this minor patch, I recompiled and the build succeeded. No behavioral change. --- libstdc++-v3/include/bits/locale_facets_nonio.tcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On 04/08/22 12:54 -0400, Seija Kijin wrote: >Had an error compiling tiny-cuda-nn using gcc 12.1. With this minor >patch, I recompiled and the build succeeded. This looks like a bug in the cuda compiler then. The libstdc++ code is correct. N.B. libstdc++ patches need to be CC'd to the libstdc++ list, or they won't get reviewed. >No behavioral change. >--- > libstdc++-v3/include/bits/locale_facets_nonio.tcc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/libstdc++-v3/include/bits/locale_facets_nonio.tcc >b/libstdc++-v3/include/bits/locale_facets_nonio.tcc >index 17a2c8d4486e..fc35a9e693e7 100644 >--- a/libstdc++-v3/include/bits/locale_facets_nonio.tcc >+++ b/libstdc++-v3/include/bits/locale_facets_nonio.tcc >@@ -1474,8 +1474,8 @@ _GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11 > // calls. So e.g. if __fmt is "%p %I:%M:%S", we can't handle it > // properly, because we first handle the %p am/pm specifier and only > // later the 12-hour format specifier. >- if ((void*)(this->*(&time_get::do_get)) == (void*)(&time_get::do_get)) >- __use_state = true; >+ if ((void*)(this->*(&time_get::do_get)) == (&time_get::do_get)) >+ __use_state = true; > #pragma GCC diagnostic pop > #endif > __time_get_state __state = __time_get_state();
diff --git a/libstdc++-v3/include/bits/locale_facets_nonio.tcc b/libstdc++-v3/include/bits/locale_facets_nonio.tcc index 17a2c8d4486e..fc35a9e693e7 100644 --- a/libstdc++-v3/include/bits/locale_facets_nonio.tcc +++ b/libstdc++-v3/include/bits/locale_facets_nonio.tcc @@ -1474,8 +1474,8 @@ _GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11 // calls. So e.g. if __fmt is "%p %I:%M:%S", we can't handle it // properly, because we first handle the %p am/pm specifier and only // later the 12-hour format specifier. - if ((void*)(this->*(&time_get::do_get)) == (void*)(&time_get::do_get)) - __use_state = true; + if ((void*)(this->*(&time_get::do_get)) == (&time_get::do_get)) + __use_state = true; #pragma GCC diagnostic pop #endif __time_get_state __state = __time_get_state();