================ @@ -6490,6 +6490,15 @@ static void HandleBTFTypeTagAttribute(QualType &Type, const ParsedAttr &Attr, TypeProcessingState &State) { Sema &S = State.getSema(); + // This attribute is only supported in C. + // FIXME: we should implement checkCommonAttributeFeatures() in SemaAttr.cpp ---------------- AaronBallman wrote:
Oh! It turns out `lifetimebound` is not really possible to run into in C because the only way it's accepted in a type position is as a member function qualifier. It also has some further issues in C++: https://godbolt.org/z/czPa3x7nb So I think we should file an issue for the confusion and not make changes in this PR for it. WDYT? https://github.com/llvm/llvm-project/pull/107238 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits