================ @@ -1217,6 +1217,8 @@ static void handlePreferredName(Sema &S, Decl *D, const ParsedAttr &AL) { bool Sema::isValidPointerAttrType(QualType T, bool RefOkay) { if (RefOkay) { + if (T->isDependentType()) ---------------- erichkeane wrote:
This doesn't seem like the right place for this, we should be skipping ANY time the type is dependent, not only when a ref argument is acceptable. https://github.com/llvm/llvm-project/pull/111573 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits