summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/current-instantiation.cpp
Commit message (Collapse)AuthorAgeFilesLines
* When rebuilding a DependentScopeDeclRefExpr, perform a lookup into the scopeRichard Smith2012-10-231-1/+13
| | | | | | even if it's dependent, in case it now names a member of the current instantiation. llvm-svn: 166496
* When declaring an out-of-line template, attempt to rebuild any typesDouglas Gregor2011-10-141-0/+20
| | | | | | | within the template parameter list that may have changed now that we know the current instantiation. Fixes <rdar://problem/10194295>. llvm-svn: 141954
* The member classes of a current instantiation aren't necessarily aDouglas Gregor2011-02-191-0/+16
| | | | | | | | | | | current instantiation, even though we have a RecordDecl describing them. Fixes PR9255. Amusingly, I've had this patch sitting around for a month or two because it was "obviously" wrong, but hadn't gotten around to writing a test case to submit the fix :) llvm-svn: 126038
* Enable expression transformations in the current-instantiationDouglas Gregor2010-07-281-0/+35
| | | | | | | rebuilder, i.e., remove a silly short-sighted hack from long ago. Thanks to Abramo Bagnara for the test case/bug report! llvm-svn: 109583
* Static data members intialized in-class that have constant values areDouglas Gregor2010-05-111-0/+13
| | | | | | | | value-dependent if their initializers are value-dependent; my recent tweak to these dependent rules overstepped by taking away this value-dependents. Fixes a Boost.GIL regression. llvm-svn: 103476
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Improve type-checking of templates by distinguishing between membersDouglas Gregor2009-11-231-0/+9
| | | | | | | of the current instantiation and members of an unknown specialization when type-checking a qualified-if expression. llvm-svn: 89653
* What luck! Clang obtains support for refering to members of theDouglas Gregor2009-07-301-0/+73
| | | | | | | current instantiation when that current instantiation is a class template partial specialization. llvm-svn: 77609
* Implement the notions of the "current instantiation" and "unknownDouglas Gregor2009-05-111-0/+71
specialization" within a C++ template, and permit name lookup into the current instantiation. For example, given: template<typename T, typename U> struct X { typedef T type; X* x1; // current instantiation X<T, U> *x2; // current instantiation X<U, T> *x3; // not current instantiation ::X<type, U> *x4; // current instantiation X<typename X<type, U>::type, U>: *x5; // current instantiation }; llvm-svn: 71471
OpenPOWER on IntegriCloud