summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-self.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR12298 et al: don't recursively instantiate a template specialization fromRichard Smith2016-08-311-11/+92
| | | | | | | | | | | | | | | within the instantiation of that same specialization. This could previously happen for eagerly-instantiated function templates, variable templates, exception specifications, default arguments, and a handful of other cases. We still have an issue here for default template arguments that recursively make use of themselves and likewise for substitution into the type of a non-type template parameter, but in those cases we're producing a different entity each time, so they should instead be caught by the instantiation depth limit. However, currently we will typically run out of stack before we reach it. :( llvm-svn: 280190
* During the instantiation of a class template specialization, thatRichard Smith2012-03-221-0/+89
specialization is known to be incomplete. If we're asked to try to complete it, don't attempt to instantiate it again -- that can lead to stack overflow, and to rejects-valids if the class being incomplete is not an error. llvm-svn: 153236
OpenPOWER on IntegriCloud