diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-17 01:13:18 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-17 01:13:18 +0000 |
commit | 22062cfca2d97d2d90c1c8ecc962aa31069cff7b (patch) | |
tree | 7e96b00fea9f2bdc536fe3e8cfa73e9302f6c26a /test/SemaTemplate/constexpr-instantiate.cpp | |
parent | 9785cd745a1c1c413951c9360c6b1c908b7813b2 (diff) | |
download | clang-22062cfca2d97d2d90c1c8ecc962aa31069cff7b.tar.gz clang-22062cfca2d97d2d90c1c8ecc962aa31069cff7b.tar.bz2 clang-22062cfca2d97d2d90c1c8ecc962aa31069cff7b.tar.xz |
Tweak diagnostic wording for init list narrowing
The conventional form is '<action> to silence this warning'.
Also call the diagnostic an 'issue' rather than a 'message' because the latter
term is more widely used with reference to message expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/constexpr-instantiate.cpp')
-rw-r--r-- | test/SemaTemplate/constexpr-instantiate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/constexpr-instantiate.cpp b/test/SemaTemplate/constexpr-instantiate.cpp index 95d6c23b9e..e8e3e7dd5a 100644 --- a/test/SemaTemplate/constexpr-instantiate.cpp +++ b/test/SemaTemplate/constexpr-instantiate.cpp @@ -154,7 +154,7 @@ namespace Unevaluated { constexpr S2() {} constexpr operator int() const { return 123456; } }; - int k2 = sizeof(short{S2(S2())}); // expected-error {{cannot be narrowed}} expected-note {{override}} + int k2 = sizeof(short{S2(S2())}); // expected-error {{cannot be narrowed}} expected-note {{insert an explicit cast to silence this issue}} } namespace PR12288 { |