summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/default-expr-arguments.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make sure that we instantiate default function arguments for anDouglas Gregor2009-11-091-2/+15
| | | | | | overloaded operator(). llvm-svn: 86581
* Special-case default argument expression in instantiation. This should fix ↵Sebastian Redl2009-11-081-0/+23
| | | | | | PR4301. Doug, please double-check my assumptions. Read the PR for more details. llvm-svn: 86465
* Make sure to call CompleteConstructorCall for bases and members that are ↵Anders Carlsson2009-10-291-0/+24
| | | | | | initialized implicitly in constructors so that default arguments etc are set correctly. Fixes PR5283. llvm-svn: 85510
* Merge uninstantiated default arguments more carefully, and try not toDouglas Gregor2009-09-171-0/+6
| | | | | | | complain about specializations of member functions that are not definitions. Fixes PR4995. llvm-svn: 82159
* Teach Sema::FindInstantiatedDecl to find instantiated RecordDecls evenDouglas Gregor2009-09-161-0/+10
| | | | | | | | | | when we are not instantiating the corresponding "current instantiation." This happens, e.g., when we are instantiating a declaration reference that refers into the "current instantiation" but occurs in a default function argument. The libstdc++ vector default constructor now instantiates properly. llvm-svn: 82069
* Cleanup and test C++ default arguments. Improvements include:Douglas Gregor2009-09-111-0/+21
| | | | | | | | | | | - Diagnose attempts to add default arguments to templates (or member functions of templates) after the initial declaration (DR217). - Improve diagnostics when a default argument is redefined. Now, the note will always point at the place where the default argument was previously defined, rather than pointing to the most recent declaration of the function. llvm-svn: 81548
* Reapply 81096, now with a fix. Spot the bug:Anders Carlsson2009-09-061-1/+4
| | | | | | | | | for (unsigned i = numargs; i < NumArgs; ++i) Args[0] = 0; ;) llvm-svn: 81123
* Revert "Initialize default CXXConstructExpr arguments to 0. Fixes a crash whenDaniel Dunbar2009-09-061-4/+1
| | | | | | | destroying the CXXConstructExpr.", this is causing test failures across the board. llvm-svn: 81100
* Initialize default CXXConstructExpr arguments to 0. Fixes a crash when ↵Anders Carlsson2009-09-051-1/+4
| | | | | | destroying the CXXConstructExpr. llvm-svn: 81096
* Report errors for member functions correctly.Anders Carlsson2009-09-051-0/+7
| | | | llvm-svn: 81063
* Use a separate diagnostic for default function argument expressions.Anders Carlsson2009-09-051-5/+5
| | | | llvm-svn: 81062
* Add a little more testing for default arguments of constructors in a class ↵Douglas Gregor2009-08-251-0/+3
| | | | | | template llvm-svn: 79989
* If a parameter has a default argument expression, make sure to instantiate ↵Anders Carlsson2009-08-251-0/+8
| | | | | | the parameter type before checking that the expression is a valid initializer. llvm-svn: 79986
* Improved support for default arguments in constructors for class templates.Anders Carlsson2009-08-251-0/+8
| | | | llvm-svn: 79984
* Basic support for default argument expressions for function templates.Anders Carlsson2009-08-251-0/+20
llvm-svn: 79972
OpenPOWER on IntegriCloud