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

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 21 10:02:24 PDT 2022


aaron.ballman added inline comments.


================
Comment at: clang/lib/AST/ASTContext.cpp:10294
+    }
+    if (const auto *AT = LHS->getAs<AutoType>()) {
+      if (AT->isGNUAutoType())
----------------
erichkeane wrote:
> xbolva00 wrote:
> > Same?
> Oooh, good catch!  Looks like it should be RHS->getAs
Great catch -- I've fixed and added additional test coverage for it.


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

https://reviews.llvm.org/D122029



More information about the cfe-commits mailing list