summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/ms-delayed-default-template-args.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [ms] Allow more unqualified lookup of types in dependent base classesReid Kleckner2016-05-241-0/+9
| | | | | | | | | | | | | | | | | | | Summary: In dependent contexts where we know a type name is required, such as a new expression, we can recover by forming a DependentNameType. This generalizes our existing compatibility hack for default arguments for template type parameters. Works towards parsing atlctrlw.h, which is PR26748. Reviewers: avt77, rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20500 llvm-svn: 270615
* Delay lookup of simple default template arguments under -fms-compatibilityReid Kleckner2014-06-061-0/+96
MSVC delays parsing of default arguments until instantiation. If the default argument is never used, it is never parsed. We don't model this. Instead, if lookup of a type name fails in a template argument context, we form a DependentNameType, which will be looked up at instantiation time. This fixes errors about 'CControlWinTraits' in atlwin.h. Reviewers: rsmith Differential Revision: http://reviews.llvm.org/D3995 llvm-svn: 210382
OpenPOWER on IntegriCloud