Fix SunStudio 12.6 runtime crash on i386
This bug has been around since the Sun Studio 11/SunCC 5.8 dayspull/668/merge
parent
28f079ba64
commit
8197732756
|
|
@ -2356,8 +2356,11 @@ public:
|
||||||
/// \details DoQuickSanityCheck() is for internal library use, and it should not be called by library users.
|
/// \details DoQuickSanityCheck() is for internal library use, and it should not be called by library users.
|
||||||
void DoQuickSanityCheck() const {ThrowIfInvalid(NullRNG(), 0);}
|
void DoQuickSanityCheck() const {ThrowIfInvalid(NullRNG(), 0);}
|
||||||
|
|
||||||
#if (defined(__SUNPRO_CC) && __SUNPRO_CC < 0x590)
|
#if defined(__SUNPRO_CC)
|
||||||
// Sun Studio 11/CC 5.8 workaround: it generates incorrect code when casting to an empty virtual base class
|
// Sun Studio 11/CC 5.8 workaround: it generates incorrect code
|
||||||
|
// when casting to an empty virtual base class. JW, 2018: It is
|
||||||
|
// still a problem in Sun Studio 12.6/CC 5.15 on i386. Just enable
|
||||||
|
// it everywhere in case it affects SPARC (which we don't test).
|
||||||
char m_sunCCworkaround;
|
char m_sunCCworkaround;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue