[MS] Push outermost class DeclContexts only in -fdelayed-template-parsing
authorReid Kleckner <rnk@google.com>
Tue, 27 Nov 2018 21:20:42 +0000 (21:20 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 27 Nov 2018 21:20:42 +0000 (21:20 +0000)
commit229eee49fc2539f2aceac3073597e6029a3fb390
tree5f4f889f7c77002454b04a0c91cb76ac8a38e33e
parent6052d09c05f7aeec8e70ee12728753bb5823ebcc
[MS] Push outermost class DeclContexts only in -fdelayed-template-parsing

This is more or less a complete rewrite of r347627, and it fixes PR38460
I added a reduced test case to DelayedTemplateParsing.cpp.

llvm-svn: 347713
clang/lib/Parse/ParseTemplate.cpp
clang/test/Parser/DelayedTemplateParsing.cpp