Fix a crash-on-invalid where we were trying to parse C++ constructs in
commit91d7af223a623118f77a02bc5ad368632f4f5a6f
authorDouglas Gregor <doug.gregor@gmail.com>
Fri, 4 Feb 2011 11:57:16 +0000 (4 11:57 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Fri, 4 Feb 2011 11:57:16 +0000 (4 11:57 +0000)
treeb135045efd582c6d076ed8f7f9482fcb6c386251
parentc218fb7e8495f94cb7af719d5731cb5a454af621
Fix a crash-on-invalid where we were trying to parse C++ constructs in
C, then hitting an assertion because C code shouldn't try to parse
optional nested-name-specifiers. Fixes PR9137.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124860 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/Parser.cpp
test/Parser/cxx-in-c.c [new file with mode: 0644]