[PATCH] D28399: PR31469: Don't add friend template class decls to redecl chain in dependent contexts.

Richard Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 9 14:06:26 PST 2017


rsmith added inline comments.


================
Comment at: lib/Sema/SemaTemplate.cpp:1214-1215
     CXXRecordDecl::Create(Context, Kind, SemanticContext, KWLoc, NameLoc, Name,
                           PrevClassTemplate?
                             PrevClassTemplate->getTemplatedDecl() : nullptr,
                           /*DelayTypeCreation=*/true);
----------------
You should keep the class out of its redeclaration chain too.


Repository:
  rL LLVM

https://reviews.llvm.org/D28399





More information about the cfe-commits mailing list