https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79915
--- Comment #2 from Jan Smets <jan.smets at nokia dot com> --- Reduced test case, only occurs on the vxworks port, not on linux. namespace a { template <typename b, typename = b> class c; class d { public: virtual ~d(); }; template <typename, typename> class e : d {}; template <typename b, typename f> class c : virtual e<b, f> {}; class g : c<char> { ~g(); }; g::~g() {} }