Fix SunStudio 12.6 runtime crash on i386

This bug has been around since the Sun Studio 11/SunCC 5.8 days
pull/668/merge
Jeffrey Walton 2018-07-16 10:33:14 -04:00
parent 28f079ba64
commit 8197732756
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 5 additions and 2 deletions

View File

@ -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
}; };