================ @@ -7416,10 +7416,11 @@ NamedDecl *Sema::ActOnVariableDeclarator( tryToFixVariablyModifiedVarType(TInfo, R, D.getIdentifierLoc(), /*DiagID=*/0); - if (const AutoType *AutoT = R->getAs<AutoType>()) - CheckConstrainedAuto( - AutoT, - TInfo->getTypeLoc().getContainedAutoTypeLoc().getConceptNameLoc()); + if (const AutoType *AutoT = R->getAs<AutoType>()) { + AutoTypeLoc Loc = TInfo->getTypeLoc().getContainedAutoTypeLoc(); ---------------- cor3ntin wrote:
> If I correctly understand description of TypeLoc correctly, TypeLoc is > trailing data of Type SourceInfo. Is that correct? Yes, the fact we have both and use both, inconsistently, which is not an ideal situation > Calling DiagnoseUseOfDecl there seems too early. It triggers on declaration > of deprecated concept. This is weird but I'm not sure we need further changes here https://github.com/llvm/llvm-project/pull/98622 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits