[PATCH] Sema: Properly support Microsoft-mode template arguments

David Majnemer david.majnemer at gmail.com
Mon Aug 19 23:55:17 PDT 2013


Hi rsmith, doug.gregor, rjmccall,

There were two things known to be wrong with our implementation of MSVC
mode template arguments:

- We didn't properly handle __uuidof/CXXUuidofExpr and skipped all type
  checking completely.
- We didn't allow for MSVC's extension of allowing certain constant
  "foldable" expressions from showing up in template arguments.
  They allow various casts dereference and address-of operations.
  We can make it more general as we find further peculiarities but this
  is the known extent.

http://llvm-reviews.chandlerc.com/D1444

Files:
  lib/Sema/SemaTemplate.cpp
  test/Parser/MicrosoftExtensions.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1444.1.patch
Type: text/x-patch
Size: 12209 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130819/125c1cca/attachment.bin>


More information about the cfe-commits mailing list