summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-sizeof.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add missing triple to instantiate-sizeof.cpp testReid Kleckner2016-03-111-1/+1
| | | | llvm-svn: 263285
* Allow sizeof(UnrelatedClass::field) in C++11 class template methodsReid Kleckner2016-03-111-1/+26
| | | | | | | | | | | | | | | | | This feature works outside of templates by forming a DeclRefExpr to a FieldDecl instead of a MemberExpr, which requires a base object in addition to the FieldDecl. Previously, while building up the template AST before instantiation, we formed a CXXDependentScopeMemberExpr, which always instantiates to a MemberExpr. Now, in unevaluated contexts we form a DependentScopeDeclRefExpr, which is a more flexible node that can instantiate to either a MemberExpr or a DeclRefExpr depending on lookup results. Fixes PR26893. llvm-svn: 263279
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-191-0/+1
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* A couple minor bug-fixes for template instantiation for expressions which ↵Eli Friedman2012-02-291-0/+10
are sometimes potentially evaluated. llvm-svn: 151707
OpenPOWER on IntegriCloud