diff options
author | Reid Kleckner <rnk@google.com> | 2019-09-12 18:26:34 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-09-12 18:26:34 +0000 |
commit | b6a8152b8bf7dc7b56e2953575037281af3d9133 (patch) | |
tree | 0bcc09b3be864b224feb5603be3aa22d9a63ad96 /clang/test/Parser/DelayedTemplateParsing.cpp | |
parent | 18f5204db4a9d5df3cb89833de4805a78f5034ee (diff) | |
download | bcm5719-llvm-b6a8152b8bf7dc7b56e2953575037281af3d9133.tar.gz bcm5719-llvm-b6a8152b8bf7dc7b56e2953575037281af3d9133.zip |
[MS] Warn when shadowing template parameters under -fms-compatibility
Summary:
C++ does not allow shadowing template parameters, but previously we
allowed it under -fms-extensions. Now this behavior is controlled by
-fms-compatibility, and we emit a -Wmicrosoft-template warning when it
happens.
Fixes PR43265
Reviewers: thakis, hans
Subscribers: amccarth, rsmith, STL_MSFT, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D67463
llvm-svn: 371753
Diffstat (limited to 'clang/test/Parser/DelayedTemplateParsing.cpp')
-rw-r--r-- | clang/test/Parser/DelayedTemplateParsing.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/test/Parser/DelayedTemplateParsing.cpp b/clang/test/Parser/DelayedTemplateParsing.cpp index c65e80b1f73..bcd286ae044 100644 --- a/clang/test/Parser/DelayedTemplateParsing.cpp +++ b/clang/test/Parser/DelayedTemplateParsing.cpp @@ -48,22 +48,6 @@ template <class T> void foo5() {} // expected-error {{redefinition of 'foo5'}} -namespace Inner_Outer_same_template_param_name { - -template <class T> -class Outmost { -public: - template <class T> - class Inner { - public: - void f() { - T* var; - } - }; -}; - -} - namespace PR11931 { |