OSDN Git Service

cp/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / inherit / ptrmem3.C
1 // Copyright (C) 2005 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 27 May 2005 <nathan@codesourcery.com>
3
4 // Origin:Andrew Pinski pinskia@gcc.gnu.org
5 // PR 21455  bogus error with pointer to member of incomplete
6
7 class XMLFile;
8
9 typedef bool (XMLFile::*ParserFunctionPtr)();
10
11 struct ParserElement
12 {
13   ParserFunctionPtr getPreFunc() const { return preFunc; }
14   ParserFunctionPtr getPostFunc() const { return postFunc; }
15   ParserFunctionPtr preFunc;
16   ParserFunctionPtr postFunc;
17 };