From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id 8DD1E385840F for ; Thu, 23 Feb 2023 16:32:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8DD1E385840F 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-ed1-x533.google.com with SMTP id ck15so45475505edb.0 for ; Thu, 23 Feb 2023 08:32:36 -0800 (PST) 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:message-id:reply-to; bh=AoAXJct+GWY7eeWcdqM41OTbbbK0gdQWOZ3oB2qE4Vg=; b=MXOXQkV/wrzoDuR95WZNMFyY3BU8v9MS7ysuWAB9Kr6bTuOu2Ipn176/mj0jdTUYMw wPUvVJ9bOppAQRgi+IkxGhQUQAzdPrgHfAvTEA9eP5ER0ureQWh0VydZnUs9a77Pf3xW M1uTtpOpfkiQswUSkCxDpEZKqtHHFJbly4sa7LoZ37vSpi4VPfBwyZcf44MpfV3UiHhw MIKNMm33lWl/ZqZdceshK/gaQqrgYnzfu87XJpxv+8dNqRrtIIm4t6755z44k0XjXmjW FQSRKC6XSSq6dAbOMGEWdw/5/8kez4MKEXlJAbdUZUKqwf4YKzfOZfJzedMygVZSNdqo MGkw== 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:message-id :reply-to; bh=AoAXJct+GWY7eeWcdqM41OTbbbK0gdQWOZ3oB2qE4Vg=; b=wDyW0SVtQgLwDStj1JnCLh7S5LXI19XZaITIzYZ3ADwRR14Ddw+j+Fe0VJcuIIJzGZ zXya9NVbB55G51f6Xh0iKlJjNiWr1saXwgIRJ8ooSHxhEzHwnam830uGxUj/YDovhW/r saYxB0IvzCD7qXCW5OswqvJK+z4/IE9/KqsvR0OvuIG/+TLJ+hxqYHUXfxKfLV311gp8 mRJCuaQXNGXlsXh+658ujrjiguWuwOA/ug2LcWLBj+xE0OwJL3PksMU1CQBEyArRZjp8 7Idg7Xkv6FlrbaD1hdofI1x0pKSXVtTAFxTs8l+dJNGU7VMZvzOO5XlRv8396pstH1w3 /tiw== X-Gm-Message-State: AO0yUKUuUdi8I3Rd269nfam++YXSkRAg8kgn8cfsEoASKm4KnMZ0msNo g+UMy9dqhr17cN4YcDHJwz7L5+gx4OIF0+eNvG3kIff6 X-Google-Smtp-Source: AK7set+InmKr8XRMiWIybw+fWQrgxDrVZX9RaprUewBC2gQ2/r8r9ZH774asfWqYnq4T7bjcWq0oU8nIl8k4nG+RYDY= X-Received: by 2002:a17:907:2071:b0:8e5:411d:4d09 with SMTP id qp17-20020a170907207100b008e5411d4d09mr3281350ejb.15.1677169955116; Thu, 23 Feb 2023 08:32:35 -0800 (PST) MIME-Version: 1.0 References: <20230223140953.13962.qmail@s411.sureserver.com> In-Reply-To: <20230223140953.13962.qmail@s411.sureserver.com> From: Jonathan Wakely Date: Thu, 23 Feb 2023 16:32:24 +0000 Message-ID: Subject: Re: build error --std=c++17 vs --std=c++23 -Wrestrict "may overlap up to 9223372036854775813 bytes at offset -3" To: Saifi Khan Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 List-Id: On Thu, 23 Feb 2023 at 14:10, Saifi Khan wrote: > > Hi: > > Tried Jonny Grant's example > g++ -O3 --std=c++23 -Wall -c repro_jg01.cc Context please - which example is that? He's posted several and I'm not going to go digging through them all. > > With the mainline build, the code compiles without any error. > > Environment > - Linux 6.1.0-3-amd64 x86_64 GNU/Linux > - Debian GLIBC 2.36-8) 2.36 > - gcc version 13.0.1 20230215 (experimental) (GCC) > > Curious to know, what changed in the mainline code ? Anyone knows the commit hash ? If you don't tell us what you're compiling, we can't guess anything about it.