[clang] [clang] Fix crash in concept deprecation (PR #98622)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 13 03:23:18 PDT 2024


================
@@ -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();
----------------
Endilll wrote:

Thank you for the analysis!

> The correct fix would be to make that decltype have some error type, for error recovery purposes.

Can you point me out to the place in our source where this change should be made?

https://github.com/llvm/llvm-project/pull/98622


More information about the cfe-commits mailing list