From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by sourceware.org (Postfix) with ESMTPS id 3207E383F84F for ; Tue, 16 Jun 2020 12:59:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3207E383F84F Received: by mail-io1-xd33.google.com with SMTP id o5so21685158iow.8 for ; Tue, 16 Jun 2020 05:59:27 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fHBvD5FpPlW3e9nWw14Q/JoZfKzA+Mtrrz0FL8K7Buk=; b=C38ZSmq0ZG7lax4dzNeFgLqU5lWIQawTuVNGh1P6swvJS5c44KkgiKB4UH83LKjZXt LyWfrHPllXOTwwAXmK+m1IfEgX9Qrh+a9TS56IlCq0vIpq2j9M8PpJD9kiaewfi8j5V/ 24A5Abui1NG5Ul5/24fq4+FWuxSohGIFuEccW5lVgpMtJYE5bOpCy9QmoxwhGGJYpghp Sone8HEzfnR2ixnZrtahnyFcDRbivL6fctgv7fiEC2f9H1h+0yWLxQh8fSeGMNG3VkUT aG7t+dlUH0v+LytqHe91NWq7kdqCZY57dCPLbM3KRN7L4MsgdaWvkL8J6/639WJAv1QT +A7w== X-Gm-Message-State: AOAM533XAIyswaSSAwC9bCMpmPZY8YgsQ9aGvrhuo2tRAk6oQhUPlmeD pfNCEBqNEpBFZfzQuKF/pWNjjgW3QQtQfF9YvUQ= X-Google-Smtp-Source: ABdhPJz/rXnbql5Qy6gaWC73wvhyq0dteKc4vMl6L6Rby3ym1PuvkUnMPqJfZETc5lYqzOg/VQ2k5BIPrk6V/9kF5v4= X-Received: by 2002:a6b:c9cd:: with SMTP id z196mr2928435iof.172.1592312366693; Tue, 16 Jun 2020 05:59:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Tue, 16 Jun 2020 13:59:15 +0100 Message-ID: Subject: Re: Kind of undefined behavior (or bug?) with GCC 10.1 To: Roland Denis Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2020 12:59:28 -0000 On Tue, 16 Jun 2020 at 12:58, Roland Denis wrote: > Am I missing something important or does that look like a GCC bug ? It's a bug. It started with https://gcc.gnu.org/r271510 and was fixed in the master branch by https://gcc.gnu.org/r11-963 which was addressing https://gcc.gnu.org/PR95493 which is a different bug. > PS: result is correct with trunk version of GCC in godbolt, does that > mean it is an already solved bug? Looks like it, but I've added a comment to PR 95493 so that it can be investigated and we can be sure your problem is really fixed.