diff options
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/SemaType.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp index 5624f709c9a..d1ab98510f7 100644 --- a/clang/lib/Sema/SemaType.cpp +++ b/clang/lib/Sema/SemaType.cpp @@ -2716,7 +2716,7 @@ static TypeSourceInfo *GetFullTypeForDeclarator(TypeProcessingState &state,          // and not, for instance, a pointer to a function.          if (D.getDeclSpec().containsPlaceholderType() &&              !FTI.hasTrailingReturnType() && chunkIndex == 0 && -            !S.getLangOpts().CPlusPlus14) { +            !S.getLangOpts().CPlusPlus14 && !S.getLangOpts().MSVCCompat) {            S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(),                   D.getDeclSpec().getTypeSpecType() == DeclSpec::TST_auto                       ? diag::err_auto_missing_trailing_return  | 

