Do not crash if class is defined in wrong scope.
This patch fixes PR16677. The latter represents the case when due to
misprinted character class definition occurs in the scope of template
arguments. Base class of this class depends on the template parameter in the
same scope and cannot be resolved, it causes crash. Right behavior is to
make semantic processing even if the definition is wrong, as the code
that emits appropriate message is called after the processing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256511
91177308-0d34-0410-b5e6-
96231b3b80d8