From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7059 invoked by alias); 21 May 2012 21:02:27 -0000 Received: (qmail 7050 invoked by uid 22791); 21 May 2012 21:02:26 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 May 2012 21:02:13 +0000 From: "roman at binarylife dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types Date: Mon, 21 May 2012 21:05:00 -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-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: roman at binarylife dot net X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: CC 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-05/txt/msg02080.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53161 Roman Kononov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roman at binarylife dot net --- Comment #8 from Roman Kononov 2012-05-21 21:00:42 UTC --- Another test case (without vectors): $ cat test.cpp void gg(); static __typeof(gg) __gthrw_gg __attribute__((__weakref__("gg"))); template struct data { template data(Y& y,R(X::*f)(A...)); }; template data make_data(Y& y,R(X::*f)(A...)) { return data(y,f); } void global(data); struct test { void bar() {} void doit() { global(make_data(*this,&test::bar)); } }; $ g++ -std=c++11 -c test.cpp test.cpp:20:2: internal compiler error: vector VEC(ipa_ref_ptr,base) index domain error, in ipa_remove_reference at ipa-ref.c:84 }; ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions.