From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21809 invoked by alias); 10 May 2014 20:32:40 -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 21778 invoked by uid 48); 10 May 2014 20:32:36 -0000 From: "daniel.kruegler at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61135] It seems to be not able to call virtual method of literal object in lambda expression Date: Sat, 10 May 2014 20:32: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-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.kruegler at googlemail dot com X-Bugzilla-Status: NEW 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: cc 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-05/txt/msg00917.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61135 Daniel Kr=C3=BCgler changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler@googlemail. | |com --- Comment #3 from Daniel Kr=C3=BCgler --- 1) The problem also exists in gcc 4.10 trunk 2) As written, the presented code would be ill-formed anyway. The following transformed example presents valid code that produces the same ICE: //----------------------- struct Base { virtual int b() const{return 1;}; }; struct Super:Base{}; int main() { constexpr Super s =3D Super(); [&]{s.b();}(); } //----------------------- >>From gcc-bugs-return-451226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat May 10 21:17:13 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5479 invoked by alias); 10 May 2014 21:17:12 -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 5402 invoked by uid 48); 10 May 2014 21:17:06 -0000 From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/50751] SH Target: Displacement addressing does not work for QImode and HImode Date: Sat, 10 May 2014 21:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: olegendo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: olegendo 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-05/txt/msg00918.txt.bz2 Content-length: 1767 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50751 --- Comment #35 from Oleg Endo --- (In reply to Oleg Endo from comment #34) > > I've tried to reproduce this on trunk rev 205756 (4.9) and the problem seems > to be gone. And it popped up again: FAIL: gcc.dg/atomic/c11-atomic-exec-4.c -Os (internal compiler error) Compiling with -Os -m4 -ml -matomic-model=soft-gusa, I get: sh_tmp.cpp: In function 'test_thread_uint8_add': sh_tmp.cpp:71:1: error: unable to find a register to spill in class 'R0_REGS' sh_tmp.cpp:71:1: error: this is the insn: (insn 29 28 30 5 (parallel [ (set (subreg:SI (reg:QI 3 r3 [181]) 0) (unspec_volatile:SI [ (mem:QI (reg/f:SI 5 r5 [184]) [0 S1 A8]) (reg:QI 180) (subreg:QI (reg:SI 7 r7 [178]) 0) ] UNSPECV_CMPXCHG_1)) (set (mem:QI (reg/f:SI 5 r5 [184]) [0 S1 A8]) (unspec_volatile:QI [ (const_int 0 [0]) ] UNSPECV_CMPXCHG_2)) (set (reg:SI 147 t) (unspec_volatile:SI [ (const_int 0 [0]) ] UNSPECV_CMPXCHG_3)) (clobber (scratch:SI)) (clobber (reg:SI 0 r0)) (clobber (reg:SI 1 r1)) ]) sh_tmp.cpp:71 640 {atomic_compare_and_swapqi_soft_gusa} (expr_list:REG_DEAD (reg:QI 180) (expr_list:REG_DEAD (reg:SI 7 r7 [178]) (expr_list:REG_UNUSED (reg:SI 1 r1) (expr_list:REG_UNUSED (reg:SI 0 r0) (nil)))))) sh_tmp.cpp:71:1: internal compiler error: in spill_failure, at reload1.c:2106 Probably we really should try switching to LRA (PR 55212).