================ @@ -13,3 +15,18 @@ template <typename T> struct S3 { int T::*foo; }; + +template<int I> struct Base {}; +struct +S5 // #S5 +: +Base<sizeof(int S5::*)> +// expected-error@-1 {{member pointer has incomplete base type 'S5'}} ---------------- MitalAshok wrote:
Yes, that's just how `-fcomplete-member-pointers` works currently. It's more like a `-Werror=...` diagnostic https://github.com/llvm/llvm-project/pull/91990 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits