From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id D67633858438 for ; Tue, 8 Feb 2022 16:58:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D67633858438 Received: by mail-wm1-x332.google.com with SMTP id l12-20020a7bc34c000000b003467c58cbdfso1650808wmj.2 for ; Tue, 08 Feb 2022 08:58:13 -0800 (PST) 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=Z1PcvTlx75jfRN/cnE9OVhVvcQVcKFDvAgvARmN1wCk=; b=RlpDO0Uahvrym17rX4gHxl1qRNLQz9qtjoTBN7daTB9+qawPk87X5+/RVbaFNDa6XA owU8ErIT2lsoi+BQs9+jShZV1kkmJIhxv2iFag7GQce6X0NTfhV5hrYdJn821s5ybyYY qTrWXg1tST/79z8LJ99Tv87pIYYara4jGGELPBdR0MhHWmOQhDpWucqggo3t65YLE1hC gwiH1oySJoZlhnGcHU/OdJL+k4BGTwV+5DUGkQY2gTQf5dSWsN8dgJOsBpeKQJrTuGmw /x8hRHaPumJhQzaypYKk8cfpCB3Clp+TsmsEaW33IyQ4/8/7AzZRvbjqSKDM5FYGuZ+h 8qYg== X-Gm-Message-State: AOAM532Rmp3auoORkFmDYQB2hez1gu6ak6mvCo1ZsT27PYfYbyjI8Y+o z5ZiF7Db0dRwaxpHy5uhG3dM+GcracDtSPRFY1w= X-Google-Smtp-Source: ABdhPJzxNJ4obh2C3x6c0WsGDSEuzRX5FrwFxQvgqCbXihWnXQTwXRwo6KbGXlZSdd0W6PBRHA0oDtDUa1ZEt3EXcsE= X-Received: by 2002:a7b:cd15:: with SMTP id f21mr1861781wmj.157.1644339492668; Tue, 08 Feb 2022 08:58:12 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Tue, 8 Feb 2022 16:58:01 +0000 Message-ID: Subject: Re: Extended doubt regarding the bug 93432 To: Krishna Narayanan Cc: gcc-help X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 08 Feb 2022 16:58:15 -0000 On Tue, 8 Feb 2022 at 16:25, Krishna Narayanan via Gcc-help < gcc-help@gcc.gnu.org> wrote: > Hello, > As an extension to the bug 93432 > (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93432), I would like to > add a few more points,here in the given code > (https://godbolt.org/z/sYjqjqh3d) there is a warning averted but there > is no warning shown for this code > (https://gcc.godbolt.org/z/oo5sf4oec) . > I tried it with "-fno-strict-aliasing -fwrapv > -fno-aggressive-loop-optimizations" and "fsanitize=undefined".There > are no errors for gcc but clang has runtime errors,the error for > clang: https://gcc.godbolt.org/z/1hq8x1o8E . > > Can we have a warning in the second case as well? It will be much more > convenient as there is a lapse of initialization. > Yes, ideally it would warn.