// RUN: not %clang -fsyntax-only -std=c++11 -ferror-limit=1 %s 2>&1 | FileCheck %s
// Test case for PR35682.
// The issue be caused by the typo correction that changes String to the
// incomplete type string. The example is based on the std::pair code and
// reduced to a minimal test case. When using std::pair the issue can only be
// reproduced when using the -stdlib=libc++ compiler option.
;
;
;
typedef basic_string<char, char_traits<char>, allocator<char>> string;
;
;
;
constexpr const Tp integral_constant<Tp, v>::value;
using true_type = integral_constant<bool, true>;
using false_type = integral_constant<bool, false>;
;
;
;
using SetKeyType = String;
single<SetKeyType> v;
// CHECK: error: unknown type name 'String'; did you mean 'string'?
// CHECK: fatal error: too many errors emitted, stopping now [-ferror-limit=]
// CHECK-NOT: Assertion{{.*}}failed