From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5862 invoked by alias); 7 Nov 2012 23:35:18 -0000 Received: (qmail 16906 invoked by uid 48); 7 Nov 2012 23:33:56 -0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/43313] ICE with non-POD and covariant return thunks Date: Wed, 07 Nov 2012 23:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-11/txt/msg00681.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43313 --- Comment #7 from Peter Bergner 2012-11-07 23:33:54 UTC --- Backtrace: #0 fancy_abort (file=0x113d6b90 "/home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.c", line=7597, function=0x113d7158 "expand_expr_addr_expr_1") at /home/bergner/gcc/gcc-fsf-mainline-base/gcc/diagnostic.c:1143 #1 0x000000001066f4e0 in expand_expr_addr_expr_1 (exp=0xfffb5cd1700, target=0x0, tmode=SImode, modifier=EXPAND_NORMAL, as=0 '\000') at /home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.c:7597 #2 0x000000001066fdd4 in expand_expr_addr_expr (exp=0xfffb5a962e0, target=0x0, tmode=SImode, modifier=EXPAND_NORMAL) at /home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.c:7706 #3 0x000000001066b0dc in expand_expr_real_1 (exp=0xfffb5a962e0, target=0x0, tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=0x0) at /home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.c:10386 #4 0x000000001066b328 in expand_expr_real (exp=0xfffb5a962e0, target=0x0, tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=0x0) at /home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.c:7866 #5 0x00000000104d8084 in expand_normal (exp=0xfffb5a962e0) at /home/bergner/gcc/gcc-fsf-mainline-base/gcc/expr.h:450 ... (gdb) p DECL_P (exp) $22 = true (gdb) p TREE_ADDRESSABLE (exp) $23 = 1 (gdb) p ! MEM_P (result) $24 = true (gdb) p ! targetm.calls.allocate_stack_slots_for_args() $25 = false (gdb) ptree exp unit size align 8 symtab 0 alias set -1 canonical type 0xfffb5c2fb58 fields nonlocal decl_4 VOID file foo.ii line 4 col 67 align 1 context result > context full-name "class CRemapPidIndex" X() X(constX&) this=(X&) n_parents=1 use_template=0 interface-unknown pointer_to_this chain > addressable used QI file foo.ii line 18 col 53 size unit size align 8 context (reg/v:QI 125 [ PidIndex ]) arg-type incoming-rtl (mem:QI (reg:SI 4 4) [0 S1 A8])>