[PATCH] Recover from missing typenames on template args for MSVC compatibility
Reid Kleckner
rnk at google.com
Fri Jun 6 15:55:10 PDT 2014
Hi rsmith,
While matching a non-type template argument against a known template
type parameter we now modify the AST's TemplateArgumentLoc to assume the
user wrote typename. Under -fms-compatibility, we downgrade our
diagnostic from an error to an extwarn.
http://reviews.llvm.org/D4049
Files:
include/clang/AST/TemplateBase.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaTemplate.cpp
test/SemaTemplate/typename-specifier.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4049.10193.patch
Type: text/x-patch
Size: 13311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140606/21557fc2/attachment.bin>
More information about the cfe-commits
mailing list