Fixes an assertion while instantiating a template with an incomplete typo-corrected...
authorAaron Ballman <aaron@aaronballman.com>
Sat, 7 Sep 2019 20:14:09 +0000 (20:14 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sat, 7 Sep 2019 20:14:09 +0000 (20:14 +0000)
commitc4450437ec91334d81a28084c4cf637cfdd8bbcb
tree9a59e5df0cfd66d9b9304d70e11c5c98fb34c36c
parent8cfff1e1bc2e451af8f099e172dc63b4bcd9be5a
Fixes an assertion while instantiating a template with an incomplete typo-corrected type.

Fixes PR35682. When a template in instantiated with an incomplete typo corrected type an assertion can trigger if the -ferror-limit is used to reduce the number of errors.

Patch by Mark de Wever.

llvm-svn: 371320
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaTemplate/instantiate-incomplete-typo-suggested-error-limit.cpp [new file with mode: 0644]