[PATCH] D115355: Fix build failure with GCC 11 in C++20 mode

Duncan P. N. Exon Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 10 09:54:08 PST 2021


dexonsmith accepted this revision.
dexonsmith added a comment.

LGTM too.



================
Comment at: clang/lib/AST/ASTImporter.cpp:8400-8403
+  AttrArgImporter(const AttrArgImporter<T> &) = delete;
+  AttrArgImporter(AttrArgImporter<T> &&) = default;
   AttrArgImporter<T> &operator=(const AttrArgImporter<T> &) = delete;
   AttrArgImporter<T> &operator=(AttrArgImporter<T> &&) = default;
----------------
Might be nice to remove the implied `<T>`s in the parameters/returns (here and elsewhere) as a follow up; a bit noisy to read those, even if it doesn't cause a build failure (probably separately from this patch).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115355



More information about the cfe-commits mailing list