From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4630 invoked by alias); 18 Jun 2014 20:58:01 -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 4590 invoked by uid 48); 18 Jun 2014 20:57:56 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/61554] [4.10 Regression] ICE: Segmentation fault Date: Wed, 18 Jun 2014 20:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels 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: 4.10.0 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-06/txt/msg01599.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61554 --- Comment #2 from Markus Trippelsdorf --- markus@x4 tmp % cat bug.ii struct A { A (); }; const unsigned long &min (const unsigned long &, const unsigned long &) {} template void transform (_InputIterator1 p1, _InputIterator2, _OutputIterator, _BinaryOperation p4) { for (; p1;) p4 (0, 0); } class multi_array { public: multi_array (int &, int &); int &resize_ranges; int resize___trans_tmp_1; void m_fn1 () { multi_array a (resize_ranges, this->m_fn2 ()); const unsigned long &(*b)(const unsigned long &, const unsigned long &) = min; transform (&resize___trans_tmp_1, 0, 0, b); A c; } ~multi_array () { for (int i; &base_;) ; } int base_; int &m_fn2 (); }; class B { void m_fn3 (const int &, const int &); multi_array _bookingSnapshotBlock; }; void B::m_fn3 (const int &, const int &) { _bookingSnapshotBlock.m_fn1 (); }