Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [ob] Adjust member pointer test for g++ 3.3
@ 2007-01-12 20:17 Daniel Jacobowitz
  2007-01-12 21:50 ` Mark Kettenis
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2007-01-12 20:17 UTC (permalink / raw)
  To: gdb-patches

Mark noticed that this test failed on G++ 3.3 because it warns that
all of Padding's member functions are private.  Easily avoided.
I imagine g++ 4.x moved or removed this warning intentionally; not
so useful here...

-- 
Daniel Jacobowitz
CodeSourcery

2007-01-12  Daniel Jacobowitz  <dan@codesourcery.com>

	* gdb.cp/member-ptr.cc (class Padding): Make contents public.

Index: member-ptr.cc
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/member-ptr.cc,v
retrieving revision 1.5
diff -u -p -r1.5 member-ptr.cc
--- member-ptr.cc	9 Jan 2007 17:59:12 -0000	1.5
+++ member-ptr.cc	12 Jan 2007 20:14:34 -0000
@@ -86,6 +86,7 @@ typedef int A::*PMI;
    added twice - otherwise it would be 2 * 0 == 0.  */
 class Padding
 {
+public:
   int spacer;
   virtual int vspacer();
 };


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-01-28 17:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-12 20:17 [ob] Adjust member pointer test for g++ 3.3 Daniel Jacobowitz
2007-01-12 21:50 ` Mark Kettenis
2007-01-12 23:08   ` Daniel Jacobowitz
2007-01-28 15:40     ` Mark Kettenis
2007-01-28 17:11       ` Daniel Jacobowitz
2007-01-28 17:50         ` Mark Kettenis
2007-01-28 17:52           ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox