diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-09 00:23:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-09 00:23:06 +0000 |
commit | 3b6afbb99a1c44b4076f8e15fb7311405941b306 (patch) | |
tree | c1cd15e2e3745e95de9bb6714d84ef1f4000e39d /lib/Parse/ParseExpr.cpp | |
parent | 7f4f86a2167abc116275e49c81350fc3225485e5 (diff) |
Initial stab at implement dependent member references to member
templates, e.g.,
x.template get<T>
We can now parse these, represent them within an UnresolvedMemberExpr
expression, then instantiate that expression node in simple cases.
This allows us to stumble through parsing LLVM's Casting.h.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index da923c489d..39496626fe 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -918,8 +918,10 @@ Parser::ParsePostfixExpressionSuffix(OwningExprResult LHS) { ConsumeParen(); break; } - case tok::arrow: // postfix-expression: p-e '->' identifier - case tok::period: { // postfix-expression: p-e '.' identifier + case tok::arrow: + case tok::period: { + // postfix-expression: p-e '->' template[opt] id-expression + // postfix-expression: p-e '.' template[opt] id-expression tok::TokenKind OpKind = Tok.getKind(); SourceLocation OpLoc = ConsumeToken(); // Eat the "." or "->" token. |