[PATCH] D78404: [clang] Implement P0692R1 from C++20 (access checking on specializations)

Sergej Jaskiewicz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 18 04:50:33 PDT 2020


broadwaylamb added a comment.

In D78404#1990192 <https://reviews.llvm.org/D78404#1990192>, @rsmith wrote:

> ... please also test ...
>
>   template<typename T> class TemplateClass3<T, &TestClass::func> varTemplate3{};
>
>
> ... which we should diagnose, because that's a primary variable template definition, not a partial / explicit specialization or explicit instantiation.


Interestingly, the latest GCC doesn't diagnose here <https://godbolt.org/z/svejsJ>, but we do. Do we need to remain compatible with GCC in this case?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D78404





More information about the cfe-commits mailing list