From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6033 invoked by alias); 29 Apr 2013 09:00:37 -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 6006 invoked by uid 48); 29 Apr 2013 09:00:34 -0000 From: "markus at trippelsdorf dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57107] tree check fail in unlink_stmt_vdef Date: Mon, 29 Apr 2013 09:00: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: markus at trippelsdorf dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 X-SW-Source: 2013-04/txt/msg02306.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57107 Markus Trippelsdorf changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markus at trippelsdorf dot | |de --- Comment #2 from Markus Trippelsdorf 2013-04-29 09:00:33 UTC --- Reduced: class A { public: template struct rebind { typedef A other; }; ~A() {} }; template struct __alloc_traits { template struct rebind { typedef typename _Alloc::template rebind<_Tp>::other other; }; }; template struct B { typedef typename __alloc_traits<_Alloc>::template rebind<_Tp>::other _Tp_alloc_type; struct C : _Tp_alloc_type { C(_Tp_alloc_type) : _Tp_alloc_type() {} }; typedef _Alloc allocator_type; B(int, const allocator_type &p2) : _M_impl(p2) {} C _M_impl; }; template class D : B<_Tp, _Alloc> { typedef B<_Tp, _Alloc> _Base; public: typedef _Tp value_type; typedef _Alloc allocator_type; D(const value_type &p1, const allocator_type &p2 = allocator_type()) : _Base(0, p2) { _M_fill_initialize(p1); } void _M_fill_initialize(const value_type &); }; void _setjmp(); void writeQImageToPng() { _setjmp(); D(0); }