From 24918e5513031ac9740f0da3ffdf71f531f7c94f Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Wed, 12 Feb 2020 17:57:55 -0600 Subject: [PATCH] check fields of actual virtual type, not just the declared one --- plugins/devel/check-structures-sanity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/devel/check-structures-sanity.cpp b/plugins/devel/check-structures-sanity.cpp index aa4b09d8e..05ad5dd87 100644 --- a/plugins/devel/check-structures-sanity.cpp +++ b/plugins/devel/check-structures-sanity.cpp @@ -788,5 +788,6 @@ void Checker::check_virtual(const ToCheck & item) return; } - check_struct(item); + ToCheck virtual_item(item, "", item.ptr, virtual_identity::get(reinterpret_cast(item.ptr))); + check_struct(virtual_item); }