testsuite/
* g++.old-deja/g++.jason/conversion5.C: Adjust option.
* g++.old-deja/g++.bugs/900215_01.C: Likewise.
cp/
PR c++/10915
* decl.c (grok_op_properties): Warn possible confusing conversion
only if -Wconversion.
From-SVN: r68303
+2003-06-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ PR c++/10915
+ * decl.c (grok_op_properties): Warn possible confusing conversion
+ only if -Wconversion.
+
2003-06-20 Mark Mitchell <mark@codesourcery.com>
PR c++/10749
&& DERIVED_FROM_P (t, current_class_type))
what = "a base class";
- if (what)
+ if (what && warn_conversion)
warning ("conversion to %s%s will never use a type conversion operator",
ref ? "a reference to " : "", what);
}
+2003-06-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * g++.old-deja/g++.jason/conversion5.C: Adjust option.
+ * g++.old-deja/g++.bugs/900215_01.C: Likewise.
+
2003-06-20 Mark Mitchell <mark@codesourcery.com>
PR c++/10888
--- /dev/null
+// Copyright (C) 2003 Free Software Foundation
+// Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
+// { dg-options "-Wno-conversion" }
+
+struct A {
+ operator A&();
+};
+
// 8/3/2000 (nathan): The std allows you to define such an op, but
// it will never be called. [class.conv.fct]. Make it an unconditional warning.
+// { dg-options "-Wconversion" }
+
struct struct0 {
operator void (); // { dg-warning "" } operator void
// { dg-do assemble }
+// { dg-options "-Wconversion" }
struct A { };
struct B: public A {
A a;