diff options
author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-09-13 06:06:58 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-09-13 06:06:58 +0000 |
commit | 2c5399f99c95b831fa90fd3a3c1d9719c1dd9441 (patch) | |
tree | ccd0501c062a073d1ebe105ac5eb1a0edeb1ac64 /test/SemaTemplate/temp_arg_nontype.cpp | |
parent | 78c057e5a16b3ba186cc6453ca26b15745f2b79d (diff) | |
download | clang-2c5399f99c95b831fa90fd3a3c1d9719c1dd9441.tar.gz clang-2c5399f99c95b831fa90fd3a3c1d9719c1dd9441.tar.bz2 clang-2c5399f99c95b831fa90fd3a3c1d9719c1dd9441.tar.xz |
Parentheses around address non-type template argument is demoted to an extension warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/temp_arg_nontype.cpp')
-rw-r--r-- | test/SemaTemplate/temp_arg_nontype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/temp_arg_nontype.cpp b/test/SemaTemplate/temp_arg_nontype.cpp index dc72db324b..fffd1dd168 100644 --- a/test/SemaTemplate/temp_arg_nontype.cpp +++ b/test/SemaTemplate/temp_arg_nontype.cpp @@ -87,7 +87,7 @@ template<int Z::*pm> struct A7c; A7<&Z::int_member> *a18_1; A7c<&Z::int_member> *a18_2; A7<&Z::float_member> *a18_3; // expected-error{{non-type template argument of type 'float Z::*' cannot be converted to a value of type 'int Z::*'}} -A7c<(&Z::int_member)> *a18_3; // expected-error{{non-type template argument cannot be surrounded by parentheses}} +A7c<(&Z::int_member)> *a18_4; // expected-warning{{address non-type template argument cannot be surrounded by parentheses}} template<unsigned char C> struct Overflow; // expected-note{{template parameter is declared here}} |