diff mbox

C++ PATCHes to improve overload resolution diagnostics

Message ID mvm61l7tmf7.fsf@hawking.suse.de
State New
Headers show

Commit Message

Andreas Schwab May 15, 2014, 9:34 a.m. UTC
Jason Merrill <jason@redhat.com> writes:

>     	(print_z_candidate): Say "candidate:" before each candidate.

	* obj-c++.dg/exceptions-3.mm: Remove check for message no longer
	emitted.
	* obj-c++.dg/exceptions-5.mm: Likewise.
diff mbox

Patch

diff --git a/gcc/testsuite/obj-c++.dg/exceptions-3.mm b/gcc/testsuite/obj-c++.dg/exceptions-3.mm
index bf0be01..3e6a775 100644
--- a/gcc/testsuite/obj-c++.dg/exceptions-3.mm
+++ b/gcc/testsuite/obj-c++.dg/exceptions-3.mm
@@ -73,7 +73,6 @@  int test (id object)
     {                     /* { dg-error "no matching function" "" { target *-*-* } 72 } */
       dummy++;            /* { dg-message "MyObject" "" { target *-*-* } 13 } */
     }                     /* { dg-message "candidate" "" { target *-*-* } 13 } */
-                          /* { dg-message "candidates" "" { target *-*-* } 72 } */
   @try { @throw object; }
   @catch (static MyObject *x) /* { dg-error "storage class" } */
     {
diff --git a/gcc/testsuite/obj-c++.dg/exceptions-5.mm b/gcc/testsuite/obj-c++.dg/exceptions-5.mm
index 1ea9a6f..087533b 100644
--- a/gcc/testsuite/obj-c++.dg/exceptions-5.mm
+++ b/gcc/testsuite/obj-c++.dg/exceptions-5.mm
@@ -73,7 +73,6 @@  int test (id object)
     {                     /* { dg-error "no matching function" "" { target *-*-* } 72 } */
       dummy++;            /* { dg-message "MyObject" "" { target *-*-* } 13 } */
     }                     /* { dg-message "candidate" "" { target *-*-* } 13 } */
-                          /* { dg-message "candidate" "" { target *-*-* } 72 } */
 
   @try { @throw object; }
   @catch (static MyObject *) /* { dg-error "storage class" } */