[PATCH] D122029: Change __auto_type behavior with qualifiers to match GCC behavior

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 21 06:21:29 PDT 2022


erichkeane added inline comments.


================
Comment at: clang/lib/Sema/SemaType.cpp:1929
+      const auto *AT = dyn_cast<AutoType>(T);
+      if (!AT || AT->isGNUAutoType()) {
+        DiagID = diag::err_typecheck_invalid_restrict_not_pointer;
----------------
The RHS here should NEVER be true.  I think the entirety of the change in this branch other than the 'if' condition needs to be reverted.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122029/new/

https://reviews.llvm.org/D122029



More information about the cfe-commits mailing list