From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 91BF53858D28; Tue, 15 Mar 2022 11:53:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 91BF53858D28 From: "dimhen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/104934] New: -fsanitize=undefined codegen err Date: Tue, 15 Mar 2022 11:53:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dimhen at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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: Tue, 15 Mar 2022 11:53:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104934 Bug ID: 104934 Summary: -fsanitize=3Dundefined codegen err Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxi= n at gcc dot gnu.org Target Milestone: --- r12-7608 FAIL Probably FAIL long ago: gcc-8 FAIL gcc version 8.0.1 20180125 (experimental) [trunk revision 257061] (GCC) $ g++ -fsanitize=3Dundefined -c -o x.o x.ii && nm -u --reverse-sort x.o U _ZTI1S $ g++ -c -o x.o x.ii && nm -u --reverse-sort x.o $ cat x.ii struct a {}; struct b { a c; }; struct S : a { virtual int d(); }; struct e : b { unsigned f(); }; unsigned e::f() { static_cast(&c); return 0; } $ ~/arch-gcc/gcc_current/bin/g++ -v Using built-in specs. COLLECT_GCC=3D/home/dimhen/arch-gcc/gcc_current/bin/g++ COLLECT_LTO_WRAPPER=3D/home/dimhen/arch-gcc/gcc_current/libexec/gcc/x86_64-= pc-linux-gnu/12.0.1/lto-wrapper OFFLOAD_TARGET_NAMES=3Dnvptx-none Target: x86_64-pc-linux-gnu Configured with: /home/dimhen/src/gcc_current/configure --prefix=3D/home/dimhen/arch-gcc/gcc_current --enable-checking=3Dyes,df,fold,rtl,extra --enable-languages=3Dc,c++,lto --disable-multilib --enable-shared --enable-threads=3Dposix --enable-__cxa_= atexit --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=3Dgnu --enable-plugin --enable-initfini-array --wi= th-isl --enable-offload-targets=3Dnvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=3Dnative --enable-libstdcxx-debug Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.1 20220311 (experimental) [master r12-7608-g5e28be89665] (= GCC)=