diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-05 05:14:19 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-05 05:14:19 +0000 |
commit | 25cae7f4b1155b1a6ca959ea5143ea39eae656cd (patch) | |
tree | 7e9252d6ea330d7ddba7bed653e4e42dc347e7ca /test/SemaTemplate/default-expr-arguments.cpp | |
parent | 248072a8b9cd956c4ac63172fc2af09790f7c6a9 (diff) |
Use a separate diagnostic for default function argument expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/default-expr-arguments.cpp')
-rw-r--r-- | test/SemaTemplate/default-expr-arguments.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/SemaTemplate/default-expr-arguments.cpp b/test/SemaTemplate/default-expr-arguments.cpp index 7e705b034d..5c95e511a7 100644 --- a/test/SemaTemplate/default-expr-arguments.cpp +++ b/test/SemaTemplate/default-expr-arguments.cpp @@ -10,28 +10,28 @@ template<typename T> void f3(T a, T b = T() + T()); // expected-error{{invalid o void g() { f1(10); - f1(S()); // expected-note{{in instantiation of default argument for 'f1<struct S>' required here}} + f1(S()); // expected-note{{in instantiation of default function argument expression for 'f1<struct S>' required here}} f2(10); f2(S()); f3(10); - f3(S()); // expected-note{{in instantiation of default argument for 'f3<struct S>' required here}} + f3(S()); // expected-note{{in instantiation of default function argument expression for 'f3<struct S>' required here}} } template<typename T> struct F { - F(T t = 10); + F(T t = 10); }; struct FD : F<int> { }; void g2() { - F<int> f; + F<int> f; FD fd; } template<typename T> struct G { - G(T) {} + G(T) {} }; void s(G<int> flags = 10) { } |