]> granicus.if.org Git - clang/commit
Fix a recovery bug Fariborz and I noticed yesterday. We were producing:
authorChris Lattner <sabre@nondot.org>
Thu, 25 Oct 2007 17:27:01 +0000 (17:27 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 25 Oct 2007 17:27:01 +0000 (17:27 +0000)
commite61933ddb958cda2650891ec12521169638cf5c9
treeebaa8725b972b10e2f3f0b4ec9e8578b5664d770
parentd6690b20b3340f30a225dffa49603951dcd75e4e
Fix a recovery bug Fariborz and I noticed yesterday.  We were producing:

method.c:4:3: error: use of undeclared identifier 'BADIDENT'
        &BADIDENT, 0
         ^
method.c:5:2: error: expected '}'
};
 ^
method.c:3:14: error: to match this '{'
struct S A = {
             ^

now we only produce:

method.c:4:3: error: use of undeclared identifier 'BADIDENT'
        &BADIDENT, 0
         ^

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43349 91177308-0d34-0410-b5e6-96231b3b80d8
Parse/ParseInit.cpp
test/Parser/recovery-1.c