[Bug lto/84805] [8 Regression] ICE in get_odr_type, at ipa-devirt.c:2096 since r258133
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 12 12:13:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84805
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
We have an ordering issue because of forward declarations:
class XclImpRoot : XclRoot {};
class XclImpColRowSettings : XclImpRoot {};
register_odr_type called on XclImpRoot causes get_odr_type to assign the id
number to XclImpColRowSettings before XclImpRoot because the base class:
class XclRoot {
public:
virtual ~XclRoot();
XclRootData &mrData;
};
has an XclRootData field which ultimately references:
struct RootData {
BiffTyp eDateiTyp;
ExtSheetBuffer *pExtSheetBuff;
SharedFormulaBuffer *pShrfmlaBuff;
ExtNameBuff *pExtNameBuff;
ExcelToSc *pFmlaConverter;
XclImpColRowSettings *pColRowBuff;
};
which contains a pointer to XclImpColRowSettings.
More information about the Gcc-bugs
mailing list