================
@@ -8605,6 +8620,28 @@ static bool checkForConflictWithNonVisibleExternC(Sema 
&S, const T *ND,
   return false;
 }
 
+static bool CheckC23ConstexprVarTypeQualifiers(Sema &SemaRef,
+                                               SourceLocation VarLoc,
+                                               QualType T) {
+  if (const auto *A = SemaRef.Context.getAsArrayType(T)) {
+    T = A->getElementType();
+  }
----------------
AaronBallman wrote:

```suggestion
  // Arrays are qualified by their element type, so get the base type (this 
works on non-arrays as well).
  T = SemaRef.Context.getBaseElementType(T);
```

https://github.com/llvm/llvm-project/pull/73099
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to