[PATCH] D21508: Diagnose friend function template redefinitions

Serge Pavlov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 13 23:42:45 PDT 2018


sepavloff updated this revision to Diff 138303.
sepavloff added a comment.

Updated patch

- Rebased relative to recent ToT
- Removed the change in `FunctionDecl::getTemplateInstantiationPattern()`, as it is not necessary for error detection,
- Added test for use in module.


Repository:
  rC Clang

https://reviews.llvm.org/D21508

Files:
  include/clang/AST/DeclBase.h
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaTemplateInstantiateDecl.cpp
  test/Modules/friend-definition.cpp
  test/SemaCXX/friend2.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21508.138303.patch
Type: text/x-patch
Size: 6097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180314/a4e0bdb0/attachment.bin>


More information about the cfe-commits mailing list