summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-08-24 23:03:25 +0000
committerDouglas Gregor <dgregor@apple.com>2009-08-24 23:03:25 +0000
commita3dff8e37adc8a40077347189708cd26e400c4c7 (patch)
treef6eb28ca2c93c785eede31c296e190a1887fead8 /clang/lib/Parse/Parser.cpp
parent6bc04bca68d27b0975b66d23f231ddcb81342c31 (diff)
downloadbcm5719-llvm-a3dff8e37adc8a40077347189708cd26e400c4c7.tar.gz
bcm5719-llvm-a3dff8e37adc8a40077347189708cd26e400c4c7.zip
Keep track of the template parameter depth properly when we have
member templates declared inside other templates. This allows us to match out-of-line definitions of member function templates within class templates to the declarations within the class template. We still can't handle out-of-line definitions for member class templates, however. llvm-svn: 79955
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index 798af1840a6..efaf1d53987 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -35,7 +35,7 @@ public:
Parser::Parser(Preprocessor &pp, Action &actions)
: CrashInfo(*this), PP(pp), Actions(actions), Diags(PP.getDiagnostics()),
- GreaterThanIsOperator(true) {
+ TemplateParameterDepth(0), GreaterThanIsOperator(true) {
Tok.setKind(tok::eof);
CurScope = 0;
NumCachedScopes = 0;
OpenPOWER on IntegriCloud