From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 3AF8C3858D37 for ; Tue, 4 Oct 2022 16:27:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3AF8C3858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-x535.google.com with SMTP id e129so13109564pgc.9 for ; Tue, 04 Oct 2022 09:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=/NBw4kQDuwG3ixfxmBL+Lw0uQ/UrxQ8WLBiorDgZ7j4=; b=akhTpS4dtcEuAimWxPwOFwlGhIooEfWAYvUTtJ8t8vKt/KmiwMF1B2NmICMEEQjyQQ MVgC6M4OoZ53lJ9JUGcnkcvRiRxnq9NwfWmNEaDhoK5wr1fOSRfobs+TE8kGbsuAOWLo jlDbiAkS54h/JgbkhXm/c2AWH5GQ15Bp9bLBn/Mk4jY7avnc1ALIGvp+9cQ4hxmiYhXW uccfzfCEFtbJ1SGCNbXmJzX5zdrXcVKz26u7B36e5flUzac+DaqPe9NzOrEnbOTTiKqc 4d2E6cfjHk53VZw9m0fLkxikoatzHzrBiXBQN4zUk+WEp/fzLYtLPCwzd3xamhs7my5A TTsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=/NBw4kQDuwG3ixfxmBL+Lw0uQ/UrxQ8WLBiorDgZ7j4=; b=MTDga1yvh9o+UlnjwjFyn3KYfNHgJc7swhSk56cC4rw9SXTcK0r03bHiK+xPaobf5t u0xU791KhlO/4YHlTydKcztmuFTG2r4gl6LTs1cWgKVZ0PkXVLk55q+kG36NLj7vnwoz FYqpYSd81la2+xAM5F+wd2rlc0n8uQanr4ZpZWnpWJwBg00yekNjUK/jTcpkATIz0+D1 o4DQuMc2jq7+F3Jwm/Fxi17HfpQYDN02P1d9weuh9uGufjvsZ9sjVy4GC3u2qwl0TRfB ZT6CB5519nHlu0CHKdVVDd2MhJXH7lLn2zEUCopGGa7aJPN5VpZsOmmmrTpyAC95Cj5U bHrA== X-Gm-Message-State: ACrzQf1AzD3z0BV1x+YE6NCCFX0NYEo/Lr/+uA97BZDLcFbwNBGCdkiu wUEtK9d+ocXxYRrDJN7ivj5j2zbvhUT06dCHtlY= X-Google-Smtp-Source: AMsMyM6hk0Alrpf3zq7+gF5jjE0dyjVYl7V3WFtXowOh5VU4Ia/LTb4xdpVmVvDmbuqhPA5TpqYavt871K1mT4QgF7g= X-Received: by 2002:a65:5b05:0:b0:439:a0ae:7e6a with SMTP id y5-20020a655b05000000b00439a0ae7e6amr23937410pgq.16.1664900836095; Tue, 04 Oct 2022 09:27:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrew Pinski Date: Tue, 4 Oct 2022 09:27:04 -0700 Message-ID: Subject: Re: gcc-bug in gcc-11 To: Shivam Rajput Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Oct 4, 2022 at 9:18 AM Shivam Rajput via Gcc wrote: > > Hey, I was trying to build clang's libcxx on my ubuntu 22.04 and it has > gcc-11.2 by default most prolly, but while building libcxx there was an > error about using the deleted function but it seems that overloaded > resolution in gcc-11 has a bug https://godbolt.org/z/GPTPYaobb , it > consider wrong overloaded function , although i build libcxx using gcc-12 . Looks like it has always been a bug in GCC (tried GCC 4.4.7 and up) and was only fixed in GCC 12.1.0. I have not looked into which patch fixed this though but you could do a "git bisect" to find the patch or ask a few people who have pre-built binaries to find the patch which fixed it. I doubt we are going to backport the fix to a GCC 11 release either since it is NOT a regression from an earlier version. Thanks, Andrew Pinski > > Thanks and regards > Shivam