summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/dependent-names.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR14695: Fix assert from bad cast<>. Not every namespace is a NamespaceDecl; ↵Richard Smith2012-12-221-0/+9
| | | | | | it might instead be a TranslationUnitDecl. llvm-svn: 170976
* When filtering the list of associated namespaces so that we don't suggest peopleNick Lewycky2012-11-131-0/+14
| | | | | | | add functions to namespace 'std', also filter out namespaces with '__' anywhere in the name. llvm-svn: 167786
* Rework my implementation of circular-reference finding to not useDouglas Gregor2012-11-101-0/+3
| | | | | | | CXXRecordDecl::forallBases, which does *not* do what I need. Fixes the failure introduced in r167651. llvm-svn: 167668
* Diagnostic circular inheritance involving dependent base classes. WeDouglas Gregor2012-11-101-2/+21
| | | | | | | would have diagnosed this at instantiation time anyway, if only we didn't hang on all of these test cases. Fixes <rdar://problem/12629723> llvm-svn: 167651
* When resolving default template arguments, it should be done in the ↵Argyrios Kyrtzidis2012-04-251-0/+32
| | | | | | | | | | declaration context of the template what we are going to instantiate. Fixes various crashes of rdar://11242625 & http://llvm.org/PR11421. llvm-svn: 155576
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-131-1/+1
| | | | | | -std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900
* Fix PR10187: when diagnosing a two-phase-lookup-related failure, don't ↵Richard Smith2011-06-261-0/+30
| | | | | | assert that any names we find are valid candidates for the call. llvm-svn: 133898
* Hyphenate "argument-dependent".Jay Foad2011-06-141-6/+6
| | | | llvm-svn: 132989
* Fix PR10053: Improve diagnostics and error recovery for code which some ↵Richard Smith2011-06-051-1/+134
| | | | | | compilers incorrectly accept due to a lack of proper support for two-phase name lookup. llvm-svn: 132672
* Improve our handling of the current instantiation for qualifiedDouglas Gregor2011-02-041-0/+27
| | | | | | | | | | | | | | id-expression, e.g., CurrentClass<T>::member Previously, if CurrentClass<T> was dependent and not complete, we would treat it as a dependent-scoped declaration reference expression, even if CurrentClass<T> referred to the current instantiation. Fixes PR8966 and improves type checking of templates. llvm-svn: 124867
* Turn access control on by default in -cc1.John McCall2010-04-091-0/+4
| | | | | | | | Remove -faccess-control from -cc1; add -fno-access-control. Make the driver pass -fno-access-control by default. Update a bunch of tests to be correct under access control. llvm-svn: 100880
* Shift things around so that it's easier to recover from a missingJohn McCall2009-12-161-2/+1
| | | | | | | | | function in a C++ call using an arbitrary call-expression type. Actually exploit this to fix the recovery implemented earlier. The diagnostic is still iffy, though. llvm-svn: 91538
* Introduce a centralized routine in Sema for diagnosing failed lookups (whenJohn McCall2009-12-161-0/+15
| | | | | | | | | used as expressions). In dependent contexts, try to recover by doing a lookup in previously-dependent base classes. We get better diagnostics out, but unfortunately the recovery fails: we need to turn it into a method call expression, not a bare call expression. Thus this is still a WIP. llvm-svn: 91525
* 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
* Fix some major problems dealing with dependently-qualified names in implicitJohn McCall2009-11-241-0/+70
| | | | | | member-reference contexts. Fixes some clang-on-clang asserts. llvm-svn: 89796
* Fix PR4365.Anders Carlsson2009-06-121-0/+16
llvm-svn: 73240
OpenPOWER on IntegriCloud