[clang] [Clang] Fix Microsoft ABI inheritance model when member pointer is used in a base specifier (PR #91990)

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 6 12:21:56 PDT 2024


================
@@ -215,6 +215,14 @@ struct NewUnspecified;
 SingleTemplate<void (IncSingle::*)()> tmpl_single;
 UnspecTemplate<void (NewUnspecified::*)()> tmpl_unspec;
 
+// Member pointers used in base specifiers force an unspecified inheritance model
+struct MemPtrInBase : UnspecTemplate<void (MemPtrInBase::*)()> {};
----------------
rnk wrote:

Yes, but it's not clear to me if that happens before or after we've finished parsing the base specifiers.

https://github.com/llvm/llvm-project/pull/91990


More information about the cfe-commits mailing list