From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13083 invoked by alias); 3 Jan 2012 16:00:39 -0000 Received: (qmail 13072 invoked by uid 22791); 3 Jan 2012 16:00:36 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Tue, 03 Jan 2012 16:00:24 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/51737] [4.6 Regression] g++ crashes (internal compiler error: Segmentation fault) when compiling quickbook Date: Tue, 03 Jan 2012 16:00: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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.6.3 X-Bugzilla-Changed-Fields: CC Known to work 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-01/txt/msg00277.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51737 Richard Guenther changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jamborm at gcc dot gnu.org Known to work| |4.7.0 --- Comment #8 from Richard Guenther 2012-01-03 15:59:53 UTC --- Testcase, ICEs at -O2, works on trunk. The code we ICE on is the same on the branch and trunk, so maybe the issue is still latent there or maybe we fixed it elsewhere. -fno-ipa-sra fixes it on the branch. template class intrusive_ptr { public: ~intrusive_ptr() { intrusive_ptr_release( px ); } T * px; }; template struct intrusive_base { friend void intrusive_ptr_release(T* ptr) { delete ptr; } }; struct section_info; struct file_info : intrusive_base { intrusive_ptr parent; intrusive_ptr switched_section; }; struct section_info : intrusive_base { intrusive_ptr parent; }; struct id_state { void * start_file(void); }; void * id_state::start_file(void) { intrusive_ptr parent; } struct id_generation_data : intrusive_base { void child_length() const {} }; void generate_id(id_generation_data& generation_data) { generation_data.child_length(); }