[PATCH] Permit duplicate explicit class instantiations if MSVCCompat is enabled

Will Wilson will at indefiant.com
Wed May 7 09:57:19 PDT 2014


Hi All,

Here's a small patch to allow duplicate explicit class instantiations
through with only a warning in MSVCCompat mode. MSVC itself silently
ignores duplicate explicit instantiations. Clang appears to skip any
duplicates so it shouldn't be too much of an issue to reduce the error to a
warning for MSVC compatibility in this case.

Test case included and clang format applied. Let me know if it LGTY.

Cheers,
Will.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140507/17440614/attachment.html>


More information about the cfe-commits mailing list