================ @@ -1156,9 +1156,11 @@ def ConstInit : InheritableAttr { def Constructor : InheritableAttr { let Spellings = [GCC<"constructor">]; - let Args = [DefaultIntArgument<"Priority", 65535>]; + let Args = [ExprArgument<"Priority", 1>]; let Subjects = SubjectList<[Function]>; let Documentation = [CtorDtorDocs]; + let TemplateDependent = 1; + let AdditionalMembers = [{ static const int DefaultPriority = 65535; }]; ---------------- erichkeane wrote:
@AaronBallman : I see in your other patch (#67360) you're using this as a magic number! Might be useful to get on the same page as this author. ```suggestion let AdditionalMembers = [{ static constexpr int DefaultPriority = 65535; }]; ``` https://github.com/llvm/llvm-project/pull/67376 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits