]> granicus.if.org Git - clang/commit
During the instantiation of a class template specialization, that
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 22 Mar 2012 03:35:28 +0000 (03:35 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 22 Mar 2012 03:35:28 +0000 (03:35 +0000)
commit564f4c5664f552becbd05407611a92754c40e641
tree80d9f49c6ecbf7436b4a7aa8dc9791f20d96fe38
parent9293fff58aa0198fa7a6bb504169bcac01dbbff7
During the instantiation of a class template specialization, that
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153236 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp
test/SemaTemplate/instantiate-self.cpp [new file with mode: 0644]