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)
commit89296ee2c39b772aa8528c1c2111974ed367b770
tree0919d4444c80a7d1c5501ec091ab9f42dc1824c6
parentb5869f6c7ca256b554c1d91f8e3ce2144f33a328
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.

llvm-svn: 225613
clang/lib/Parse/ParseExprCXX.cpp
clang/test/Parser/cxx0x-lambda-expressions.cpp