From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11447 invoked by alias); 22 Aug 2014 00:45:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11417 invoked by uid 48); 22 Aug 2014 00:45:19 -0000 From: "su at cs dot ucdavis.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/62208] ICE with LTO on valid code at -O3 on x86_64-linux-gnu in trunc_int_for_mode, at explow.c:56 Date: Fri, 22 Aug 2014 00:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: su at cs dot ucdavis.edu X-Bugzilla-Status: UNCONFIRMED 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-SW-Source: 2014-08/txt/msg01499.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D62208 --- Comment #2 from Zhendong Su --- (In reply to Richard Biener from comment #1) > Can't reproduce it. Richard, it still fails for me with r214255. The linker I use is=20 GNU gold (GNU Binutils for Ubuntu 2.22) 1.11 if that is relevant.=20 $ gcc-trunk -v Using built-in specs. COLLECT_GCC=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux= -gnu/5.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-trunk/configure --prefix=3D/usr/local/gcc-trunk --enable-languages=3Dc,c++ --disable-werror --enable-multilib Thread model: posix gcc version 5.0.0 20140821 (experimental) [trunk revision 214255] (GCC)=20 $=20 $ ld -v=20 GNU gold (GNU Binutils for Ubuntu 2.22) 1.11 $=20 $ gcc-trunk -flto -m32 -O3 small.c small.c: In function =E2=80=98main=E2=80=99: small.c:21:1: internal compiler error: in trunc_int_for_mode, at explow.c:56 } ^ 0x627bd0 trunc_int_for_mode(long, machine_mode) ../../gcc-trunk/gcc/explow.c:56 0x616438 gen_int_mode(long, machine_mode) ../../gcc-trunk/gcc/emit-rtl.c:437 0x8d15cc simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) ../../gcc-trunk/gcc/simplify-rtx.c:1735 0x8ceb9a simplify_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) ../../gcc-trunk/gcc/simplify-rtx.c:814 0x8cff40 simplify_gen_unary(rtx_code, machine_mode, rtx_def*, machine_mode) ../../gcc-trunk/gcc/simplify-rtx.c:387 0xe124be if_then_else_cond ../../gcc-trunk/gcc/combine.c:8615 0xe1d34e combine_simplify_rtx ../../gcc-trunk/gcc/combine.c:5262 0xe1fbca subst ../../gcc-trunk/gcc/combine.c:5199 0xe1f8e8 subst ../../gcc-trunk/gcc/combine.c:5144 0xe1f8e8 subst ../../gcc-trunk/gcc/combine.c:5144 0xe22144 try_combine ../../gcc-trunk/gcc/combine.c:3134 0xe27fad combine_instructions ../../gcc-trunk/gcc/combine.c:1280 0xe27fad rest_of_handle_combine ../../gcc-trunk/gcc/combine.c:13896 0xe27fad execute ../../gcc-trunk/gcc/combine.c:13939 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. lto-wrapper: fatal error: gcc-trunk returned 1 exit status compilation terminated. /usr/bin/ld: fatal error: lto-wrapper failed collect2: error: ld returned 1 exit status $ >>From gcc-bugs-return-459003-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Aug 22 02:59:48 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23075 invoked by alias); 22 Aug 2014 02:59:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23003 invoked by uid 48); 22 Aug 2014 02:59:37 -0000 From: "potswa at mac dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/62221] New: Explicit base destructor call acccepted Date: Fri, 22 Aug 2014 02:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: potswa at mac dot com X-Bugzilla-Status: UNCONFIRMED 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 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg01500.txt.bz2 Content-length: 856 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62221 Bug ID: 62221 Summary: Explicit base destructor call acccepted Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: potswa at mac dot com #include struct b { virtual ~ b() {} }; struct d : b { ~ d () {} }; int main() { d o; o.~b(); new( & o ) d; } This is ill formed but is accepted. Clang, EDG, and MSVC all reject it. [basic.lookup.classref]p3: "If the type T of the object expression is of a class type C, the type-name is also looked up in the scope of class C. At least one of the lookups shall find a name that refers to (possibly cv-qualified) T."