]> granicus.if.org Git - clang/commit
Fix the parser's updating of the template depth when parsing local templates and...
authorFaisal Vali <faisalv@yahoo.com>
Sat, 8 Jun 2013 19:33:09 +0000 (19:33 +0000)
committerFaisal Vali <faisalv@yahoo.com>
Sat, 8 Jun 2013 19:33:09 +0000 (19:33 +0000)
commit22bf46a9a30aaad965762cc2d4f0192eb85f685b
tree626401a739f4151236143b83ffb165095a1f08ad
parent9808b711aa2153e4fe9a627a2721fa5c3bbbdc97
Fix the parser's updating of the template depth when parsing local templates and late-parsed templates. This is a slight tweak of r180708; It avoids incrementing depth when non-template local classes nested within member templates of local classes are encountered.
This patch was LGTM'd by Doug http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130506/079656.html and passed the regression tests that normally pass (i.e. excluding many Module and Index tests on Windows that fail regardless)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183618 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseTemplate.cpp
test/SemaTemplate/local-member-templates.cpp