]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
call.c (convert_like_real): Use inform for identifying the declaration point.
authorJason Merrill <jason@redhat.com>
Mon, 12 May 2014 19:07:55 +0000 (15:07 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 12 May 2014 19:07:55 +0000 (15:07 -0400)
* call.c (convert_like_real): Use inform for identifying the
declaration point.

From-SVN: r210332

13 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp0x/defaulted20.C
gcc/testsuite/g++.dg/overload/arg3.C
gcc/testsuite/g++.dg/overload/copy1.C
gcc/testsuite/g++.dg/overload/volatile1.C
gcc/testsuite/g++.dg/tc1/dr152.C
gcc/testsuite/g++.dg/template/incomplete4.C
gcc/testsuite/g++.dg/template/incomplete5.C
gcc/testsuite/g++.dg/warn/incomplete2.C
gcc/testsuite/g++.old-deja/g++.bob/inherit2.C
gcc/testsuite/g++.old-deja/g++.pt/auto_ptr.C
gcc/testsuite/g++.old-deja/g++.pt/crash9.C

index a9aa6139644c599ba263f1c3e2d8ca66ef1f48f7..15dc0b6072cd1840235cdf8cf6893ed13ab938e0 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-12  Jason Merrill  <jason@redhat.com>
+
+       * call.c (convert_like_real): Use inform for identifying the
+       declaration point.
+
 2014-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * cvt.c (cp_convert_to_pointer): Don't call error_at if
index 254b43a24279699afe510cece0e50a7228eea104..f2ceef247812f683305e7dbf45aee9598a613df0 100644 (file)
@@ -6256,8 +6256,8 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum,
        return expr;
       expr = build_temp (expr, totype, flags, &diag_kind, complain);
       if (diag_kind && fn && complain)
-       emit_diagnostic (diag_kind, DECL_SOURCE_LOCATION (fn), 0,
-                        "  initializing argument %P of %qD", argnum, fn);
+       inform (DECL_SOURCE_LOCATION (fn),
+               "  initializing argument %P of %qD", argnum, fn);
       return build_cplus_new (totype, expr, complain);
 
     case ck_ref_bind:
index affda20fdd4256bfc1fed4ca5cb06520d344e2d7..2bc4f7fbb5b79dd7a32a84d39cccbfb49c403c96 100644 (file)
@@ -10,7 +10,7 @@ struct B {
   B(B&&) = default;    // { dg-error "implicitly deleted|use of deleted" }
 };
 
-void g(B);                     // { dg-error "argument 1" }
+void g(B);                     // { dg-message "argument 1" }
 B&& f();
 
 int main()
index 34624cd22e43c82e61f9d3f711f46a6fe8ecf2ac..58c1694bcd90747a4830cfea073d128703c1f9e3 100644 (file)
@@ -14,7 +14,7 @@ struct B : A
   B(B&);  // { dg-message "note" "" }
 };
 
-void foo(B);                   // { dg-error "initializing" }
+void foo(B);                   // { dg-message "initializing" }
 
 void bar()
 {
index f0ec385fc9cb1d0781f9eddc918c7f270a350dd5..b634b05c1ec7b1e6990ff15e9368934c44e14238 100644 (file)
@@ -10,7 +10,7 @@ struct B
 
 struct A
 {
-  A (B);                       // { dg-error "initializing" }
+  A (B);                       // { dg-message "initializing" }
 };
 
 B
index baf467d81828058442a0183a15f2fd9d2d3bc453..29f649f3af27a35eb2bbfa5e2ac9c6f2b032134b 100644 (file)
@@ -3,7 +3,7 @@
 
 struct A { };
 
-void f (A);                    // { dg-error "argument 1" }
+void f (A);                    // { dg-message "" }
 void (*g)(A);
 
 int main()
index bf742ee9b8ae56e7be98efb26030dc2abbe69de4..944906c164823b1100c3467a729c16f7c6166faa 100644 (file)
@@ -7,7 +7,7 @@ namespace N1 {
     X();                       // { dg-message "note" }
     explicit X(const X&);
   };
-  void f(X);                   // { dg-error "initializing" }
+  void f(X);                   // { dg-message "initializing" }
   int foo() 
   { 
     X x; 
@@ -24,7 +24,7 @@ namespace N2 {
   };
 
   template <class T>
-  void f(T ) {}                        // { dg-error "initializing" }
+  void f(T) {}                 // { dg-message "initializing" }
   
   template <class T>
   int foo() 
index f2832a73c4ceeef54ebccb7a9205962c08712593..871e503ad87e4406fcfaa193b03fd3f8b7e2a31c 100644 (file)
@@ -5,7 +5,7 @@ class A;        // { dg-error "forward declaration" }
 
 template <typename T> struct X
 {
-  static int f (T);            // { dg-error "initializing" }
+  static int f (T);            // { dg-message "initializing" }
   static const T &make ();
 };
 
index f7802825fde9658a0bc14e6638259ac56e4614e5..b0a178b625746e36dabda6d055428a59663a613a 100644 (file)
@@ -5,7 +5,7 @@ class A;        // { dg-error "forward declaration" }
 
 template <typename T> struct X
 {
-  static int f (T);            // { dg-error "initializing" }
+  static int f (T);            // { dg-message "initializing" }
   static const T &make ();
   static const bool value = sizeof (f (make ())) == sizeof (int);      // { dg-error "invalid use of incomplete type" }
 };
index 30be26749c94aa7018560c51e90be878e572adb2..c307c300892e2139700da4b2dac09d4292e85701 100644 (file)
@@ -3,7 +3,7 @@
 
 class A;       // { dg-error "forward declaration" }
 
-int f (A);                     // { dg-error "initializing" }
+int f (A);                     // { dg-message "initializing" }
 const A &make ();
 
 int
index 6e26ecfa639324916865b41cf24370361f374c0f..f92e8e1204741235701bd9b4f179bc8f3460ce65 100644 (file)
@@ -15,7 +15,7 @@ public:
   B(void) {}
 };
 
-void f(B b) {                  // { dg-error "initializing" }
+void f(B b) {                  // { dg-message "initializing" }
 }
 
 void g() {
index ecfa4de18f9fdfe58c1d54b506b2dc6ad3df8a12..3e672efbe423468959a60981d322ba1e8054c925 100644 (file)
@@ -44,7 +44,7 @@ struct Derived : Base { Derived() {} };
 
 auto_ptr<Derived> f() { auto_ptr<Derived> null(0); return null; }
 void g(auto_ptr<Derived>) { }
-void h(auto_ptr<Base>) { }     // { dg-error "initializing" }
+void h(auto_ptr<Base>) { }     // { dg-message "initializing" }
 
 int main() {
     auto_ptr<Base> x(f());
index f2d811dda1a75c8261b55a289bc664eabff4b1d8..aecbd60d97012fb891fd7d1b6c2e8b44c0cf98c0 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-do assemble  }
 
 template <class T>
-void f(T) {}                   // { dg-error "initializing" }
+void f(T) {}                   // { dg-message "initializing" }
 
 class C;    // { dg-error "forward declaration" }