1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s 2 3 namespace PR23186 { 4 decltype(ned); // expected-error-re {{use of undeclared identifier 'ned'{{$}}}} 5 // The code below was triggering an UNREACHABLE in ASTContext::getTypeInfoImpl 6 // once the above code failed to recover properly after making the bogus 7 // correction of 'ned' to 'new'. 8 template <typename> 9 struct S { 10 enum { V }; fPR23186::S11 void f() { 12 switch (0) 13 case V: 14 ; 15 } 16 }; 17 } 18