From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19267 invoked by alias); 14 Sep 2011 13:37:33 -0000 Received: (qmail 19122 invoked by uid 22791); 14 Sep 2011 13:37:31 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_SV,TW_VX 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; Wed, 14 Sep 2011 13:36:44 +0000 From: "markus at trippelsdorf dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/50383] ICE in lto_symtab_register_decl, at lto-symtab.c:148 Date: Wed, 14 Sep 2011 13:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto 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 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: 2011-09/txt/msg00968.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50383 Markus Trippelsdorf changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markus at trippelsdorf dot | |de --- Comment #5 from Markus Trippelsdorf 2011-09-14 13:32:17 UTC --- More reduced: % cat test.cpp typedef long unsigned int size_t; extern "C" { typedef unsigned short sal_uInt16; }; class Resource { }; namespace com { namespace sun { namespace star { namespace uno { class BaseReference { }; enum UnoReference_Query { UNO_QUERY, UNO_REF_QUERY }; template < class interface_type > class Reference:public BaseReference { public: inline static void *operator new (:: size_t nSize) { } inline Reference (const BaseReference & rRef, UnoReference_Query); }; class Exception { }; class XInterface { }; } } } } class OutputDevice:public Resource { }; class Window:public OutputDevice { }; class SystemWindow:public Window { }; class Dialog:public SystemWindow { }; class ModalDialog:public Dialog { }; class TabPage:public Window { }; class SvListEntry { }; class SvLBoxEntry:public SvListEntry { }; namespace com { namespace sun { namespace star { namespace beans { class XPropertySet: public::com::sun::star::uno::XInterface { }; } namespace xforms { class XFormsUIHelper1: public::com::sun::star::uno::XInterface { }; class XSubmission; } } } } namespace svxform { struct ItemNode; typedef::com::sun::star::uno::Reference <::com::sun::star::xforms::XFormsUIHelper1> XFormsUIHelper1_ref; typedef::com::sun::star::uno::Reference <::com::sun::star::beans::XPropertySet> XPropertySet_ref; typedef::com::sun::star::uno::Reference <::com::sun::star::xforms::XSubmission> XSubmission_ref; class XFormsPage: TabPage { XFormsUIHelper1_ref m_xUIHelper; bool DoToolBoxAction (sal_uInt16 _nToolBoxID); SvLBoxEntry *AddEntry (const XPropertySet_ref & _rPropSet); void EditEntry (const XPropertySet_ref & _rPropSet); }; class AddSubmissionDialog: ModalDialog { public: AddSubmissionDialog (Window *pParent, ItemNode *_pNode, const XFormsUIHelper1_ref & _rUIHelper); XSubmission_ref &GetNewSubmission () const { } }; } using namespace::com::sun::star::beans; using namespace::com::sun::star::uno; namespace css =::com::sun::star; namespace svxform { bool XFormsPage::DoToolBoxAction (sal_uInt16 _nToolBoxID) { switch (_nToolBoxID) { case 12: { { AddSubmissionDialog aDlg (this, __null, m_xUIHelper); { try { Reference xNewSubmission = aDlg.GetNewSubmission (); Reference < XPropertySet > xNewPropSet (xNewSubmission, UNO_QUERY); SvLBoxEntry *pEntry = AddEntry (xNewPropSet); } catch (Exception &) { } } } } } } SvLBoxEntry *XFormsPage::AddEntry (const Reference < XPropertySet > &_rEntry) { } void XFormsPage::EditEntry (const Reference < XPropertySet > &_rEntry) { } } % g++ -o /dev/null -O0 -nostdlib -Wfatal-errors -fpreprocessed -fpermissive -flto -w -r -fpermissive test.cpp lto1: internal compiler error: in lto_symtab_register_decl, at lto-symtab.c:148