[PATCH] D23016: Enhance treatment of function specializations in friend declarations

Serge Pavlov via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 11:59:33 PDT 2016


Ping.

Thanks,
--Serge

2016-08-01 21:47 GMT+07:00 Serge Pavlov <sepavloff at gmail.com>:

> sepavloff created this revision.
> sepavloff added a subscriber: cfe-commits.
>
> Function specializations used in friend declarations in class templates,
> like:
> ```
>     template<typename T> class C1 {
>         friend void func<>(int);
> ```
> previously were processed incorrectly: class instantiation made them
> ordinary
> functions and they were not placed into redeclaration chains correctly.
> This
> change repairs specialization treatment.
>
> This change fixes PR12994.
>
> https://reviews.llvm.org/D23016
>
> Files:
>   lib/AST/DeclTemplate.cpp
>   lib/Sema/SemaAccess.cpp
>   lib/Sema/SemaTemplateInstantiateDecl.cpp
>   test/SemaCXX/friend-spec.cpp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160809/81d059f3/attachment.html>


More information about the cfe-commits mailing list