diff options
author | Jason Merrill <jason@redhat.com> | 2014-05-14 12:47:54 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2014-05-14 12:47:54 -0400 |
commit | 89606913ce096b28d0a822fedf4a6333468a66cd (patch) | |
tree | 1a5c0bb3429211772bcc50bc832841a0edf52f96 /libstdc++-v3 | |
parent | 25109109c4112c924627c97809d3a0ad38333651 (diff) | |
download | gcc-89606913ce096b28d0a822fedf4a6333468a66cd.zip gcc-89606913ce096b28d0a822fedf4a6333468a66cd.tar.gz gcc-89606913ce096b28d0a822fedf4a6333468a66cd.tar.bz2 |
call.c (struct conversion_info): Rename 'from_type' to 'from'.
* call.c (struct conversion_info): Rename 'from_type' to 'from'.
(arg_conversion_rejection, bad_arg_conversion_rejection)
(explicit_conversion_rejection, template_conversion_rejection): Adjust.
(add_function_candidate): Pass actual argument, rather than type, to
bad_arg_conversion_rejection.
(print_conversion_rejection): Explain what's wrong with the conversion.
(print_z_candidate): Say "candidate:" before each candidate.
(splice_viable): Be strict if we see a viable or template candidate.
(build_user_type_conversion_1): Pass false to strict parameter.
(perform_overload_resolution, build_conditional_expr_1): Likewise.
(build_new_op_1, build_new_method_call_1): Likewise.
(build_op_call_1): Pass true to strict parameter.
From-SVN: r210435
Diffstat (limited to 'libstdc++-v3')
11 files changed, 8 insertions, 10 deletions
diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/assign_neg.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/assign_neg.cc index c88d4a2..1a699b7 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/assign_neg.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/assign_neg.cc @@ -36,7 +36,6 @@ test01() { std::auto_ptr<Base> ptr2; ptr2 = new Base; // { dg-error "no match" } - // { dg-error "candidate" "candidate note" { target *-*-* } 38 } return 0; } diff --git a/libstdc++-v3/testsuite/20_util/pair/astuple/get_by_type_neg.cc b/libstdc++-v3/testsuite/20_util/pair/astuple/get_by_type_neg.cc index a2bb0ab..34bc46e 100644 --- a/libstdc++-v3/testsuite/20_util/pair/astuple/get_by_type_neg.cc +++ b/libstdc++-v3/testsuite/20_util/pair/astuple/get_by_type_neg.cc @@ -24,5 +24,5 @@ void test01() { std::pair<int, int> p; - std::get<int>(p); // { dg-error "ambiguous" } + std::get<int>(p); // { dg-error "ambiguous|lvalue" } } diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc index 48f1c00..c7d178b 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc @@ -35,7 +35,7 @@ test01() std::shared_ptr<A> a; std::unique_ptr<A> u; - a = u; // { dg-error "cannot bind" } + a = u; // { dg-error "" } return 0; } diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc index 563d2f8..b0e9781 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc @@ -34,7 +34,7 @@ test01() bool test __attribute__((unused)) = true; std::unique_ptr<A> a; - std::shared_ptr<A> p(a); // { dg-error "cannot bind" } + std::shared_ptr<A> p(a); // { dg-error "" } return 0; } diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/modifiers/reset_neg.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/modifiers/reset_neg.cc index 45fa86a..4f343d0 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/modifiers/reset_neg.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/modifiers/reset_neg.cc @@ -34,7 +34,7 @@ test01() bool test __attribute__((unused)) = true; const std::shared_ptr<A> p1(new A); - p1.reset(); // { dg-error "discards qualifiers" } + p1.reset(); // { dg-error "" } return 0; } diff --git a/libstdc++-v3/testsuite/20_util/unique_ptr/assign/assign_neg.cc b/libstdc++-v3/testsuite/20_util/unique_ptr/assign/assign_neg.cc index 76e33de..f00f9d8 100644 --- a/libstdc++-v3/testsuite/20_util/unique_ptr/assign/assign_neg.cc +++ b/libstdc++-v3/testsuite/20_util/unique_ptr/assign/assign_neg.cc @@ -46,7 +46,6 @@ void test03() { std::unique_ptr<int[2]> p1(new int[3]); // { dg-error "no match" } - // { dg-error "candidate" "candidate-note" { target *-*-* } 48 } std::unique_ptr<int[2]> p2 = p1; // { dg-error "deleted" } } diff --git a/libstdc++-v3/testsuite/20_util/unique_ptr/cons/pointer_array_convertible_neg.cc b/libstdc++-v3/testsuite/20_util/unique_ptr/cons/pointer_array_convertible_neg.cc index 57c2223..05a2e07 100644 --- a/libstdc++-v3/testsuite/20_util/unique_ptr/cons/pointer_array_convertible_neg.cc +++ b/libstdc++-v3/testsuite/20_util/unique_ptr/cons/pointer_array_convertible_neg.cc @@ -35,7 +35,7 @@ struct B : A void test01() { - std::unique_ptr<B[]> B_from_A(new A[3]); //{ dg-error "invalid conversion from" } + std::unique_ptr<B[]> B_from_A(new A[3]); //{ dg-error "" } } // { dg-prune-output "include" } diff --git a/libstdc++-v3/testsuite/20_util/unique_ptr/modifiers/reset_neg.cc b/libstdc++-v3/testsuite/20_util/unique_ptr/modifiers/reset_neg.cc index 45e2c5a..5aecd48 100644 --- a/libstdc++-v3/testsuite/20_util/unique_ptr/modifiers/reset_neg.cc +++ b/libstdc++-v3/testsuite/20_util/unique_ptr/modifiers/reset_neg.cc @@ -32,7 +32,7 @@ struct B : A void test01() { std::unique_ptr<B[]> up; - up.reset(new A[3]); // { dg-error "invalid conversion" } + up.reset(new A[3]); // { dg-error "" } } // { dg-prune-output "include" } diff --git a/libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc b/libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc index 377bfe0..ceb2022 100644 --- a/libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc +++ b/libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc @@ -31,7 +31,6 @@ test01() { std::weak_ptr<A> p1; p1 < p1; // { dg-error "no match" } - // { dg-error "candidate" "candidate note" { target *-*-* } 33 } return 0; } diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc index 662a985..defafb3 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc @@ -34,7 +34,7 @@ test01() bool test __attribute__((unused)) = true; std::tr1::shared_ptr<A> a; - a = source(); // { dg-error "no match" } + a = source(); // { dg-error "" } return 0; } diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset_neg.cc index b3c5914..26fc3d0 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/modifiers/reset_neg.cc @@ -34,6 +34,7 @@ test01() const std::tr1::shared_ptr<A> p1(new A); p1.reset(); // { dg-error "discards qualifiers" } + // { dg-error "no match" "" { target *-*-* } 36 } return 0; } |