From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E9BB3858D35; Thu, 7 Sep 2023 08:01:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E9BB3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694073674; bh=Ae9U71QSNPyCLORSLimAin8lI8qrDPrIgi4+zo5N8Co=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Av+ro0dsF8KwY43HSEyaESds6XIwwMU07DQQAIJm7+RgBJQeqPTG5a7h7NoRG6P6J /sBM+eqZhaSNhNuTD/iy488XXC72E6IGzpkHszUexh8bFLQPZmnzsz6pDUIJnH+t8V 3H6ma8Q6/nIuDK37mosI3YOtXcEJ8ZC1Y1LRI6+k= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111319] Wrong code at -O2 on x86_64-linux-gnu Date: Thu, 07 Sep 2023 08:01:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution cc bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111319 Xi Ruoyao changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID CC| |xry111 at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED --- Comment #3 from Xi Ruoyao --- Please try not to create more reports with "not sure if there is UB" esp. t= his UB should be obvious, and it's also detectable with -fsanitize=3Dundefined: t.c:13:7: runtime error: load of address 0x7ffd53183020 with insufficient s= pace for an object of type 'int' 0x7ffd53183020: note: pointer points here 2a 56 00 00 01 00 00 00 00 00 00 00 00 14 1a ed ca 50 d4 0e 00 00 00 00= 00 00 00 00 98 31 18 53 ^=