From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 602D83858010; Wed, 4 May 2022 10:33:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 602D83858010 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/105469] "execution reached an unreachable program point" with -flto Date: Wed, 04 May 2022 10:33:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2022 10:33:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105469 --- Comment #6 from Martin Li=C5=A1ka --- g++ repro.ii -fsanitize=3Dundefined -O3 -fwhole-program && ./a.out 0x7fffffffdb38repro.ii:29:24: runtime error: execution reached an unreachab= le program point #0 0x401300 in main (/home/marxin/Programming/testcases/a.out+0x401300) #1 0x7ffff751f62f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #2 0x7ffff751f6ef in __libc_start_main_impl ../csu/libc-start.c:392 #3 0x401384 in _start (/home/marxin/Programming/testcases/a.out+0x40138= 4)=