]> granicus.if.org Git - clang/commit
Fix a crash-on-invalid where we were trying to parse C++ constructs in
authorDouglas Gregor <dgregor@apple.com>
Fri, 4 Feb 2011 11:57:16 +0000 (11:57 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 4 Feb 2011 11:57:16 +0000 (11:57 +0000)
commit758afbcc86ef15f8d433f5f87db1495e50effeb3
treeb135045efd582c6d076ed8f7f9482fcb6c386251
parentcd9175d5013700b2827fc727fed2b53ea89be027
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]