Only do delayed diagnostics if there were no errors when parsing the decl.
commita7bf7bbdb1f89c35a09bc525c6862525ae82778f
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 24 Jun 2011 19:59:27 +0000 (24 19:59 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 24 Jun 2011 19:59:27 +0000 (24 19:59 +0000)
treee2af02f3063c29a342d09aa2c7b16be8390e6e78
parentcf79eba65b327acad1cbb5b35b26fa751f6d7132
Only do delayed diagnostics if there were no errors when parsing the decl.

Fixes crash in http://llvm.org/PR10109 & rdar://9584039.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133816 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/SemaCXX/nested-name-spec.cpp