Allow the parser to recover gracefully if a typename is used to introduce a decltype type.
In Microsoft mode, we emit a warning instead of an error.
This fixes a couple of errors when parsing the MSVC 11 RC headers with clang.
llvm-svn: 160613
diff --git a/clang/test/SemaCXX/MicrosoftCompatibility.cpp b/clang/test/SemaCXX/MicrosoftCompatibility.cpp
index 74d54ef..6a48f36 100644
--- a/clang/test/SemaCXX/MicrosoftCompatibility.cpp
+++ b/clang/test/SemaCXX/MicrosoftCompatibility.cpp
@@ -4,6 +4,8 @@
typedef unsigned short char16_t;
typedef unsigned int char32_t;
+typename decltype(3) a; // expected-warning {{expected a qualified name after 'typename'}}
+
namespace ms_conversion_rules {
void f(float a);