[PATCH] D41179: [Sema] Diagnose template specializations with C linkage
Mikhail Maltsev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 27 07:14:18 PST 2017
miyuki added a comment.
In https://reviews.llvm.org/D41179#957992, @sepavloff wrote:
> Classes do not have language linkage according to 10.5p1, just as templates, so this code is valid.
> It looks like defining templates inside extern "C" blocks is OK.
Currently both Clang and GCC diagnose class templates declared inside an 'extern "C"' block. I'm not sure how to proceed about this.
More information about the cfe-commits