]> granicus.if.org Git - clang/commit
Parse: Don't parse beyond the end of the synthetic default argument tok
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 12 Jan 2015 02:28:16 +0000 (02:28 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 12 Jan 2015 02:28:16 +0000 (02:28 +0000)
commitb59b29fd325ab3705daabc19b200c00ee6bf59ee
tree690f71851e085c4beb9cfefbc0df4b5246a89ad1
parent30e99c2392679daa94bd32d83141f2f4cff1e874
Parse: Don't parse beyond the end of the synthetic default argument tok

Recovery from malformed lambda introducers would find us consuming the
synthetic default argument token, which is bad.  Instead, stop right
before that token.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225613 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseExprCXX.cpp
test/Parser/cxx0x-lambda-expressions.cpp