This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/50383] ICE in lto_symtab_register_decl, at lto-symtab.c:148
- From: "markus at trippelsdorf dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Sep 2011 13:32:17 +0000
- Subject: [Bug lto/50383] ICE in lto_symtab_register_decl, at lto-symtab.c:148
- Auto-submitted: auto-generated
- References: <bug-50383-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50383
Markus Trippelsdorf <markus at trippelsdorf dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markus at trippelsdorf dot
| |de
--- Comment #5 from Markus Trippelsdorf <markus at trippelsdorf dot de> 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 <css::xforms::XSubmission> 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