OSDN Git Service

* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / binding3.C
1 // { dg-do assemble  }
2 // Bug: g++ fails to clear out the IDENTIFIER_CLASS_VALUEs of various names
3 // after a class definition.
4
5 struct A {
6   typedef double T;
7   virtual T f () = 0;
8 };
9
10 class B {
11   B (const B&);
12   void operator=(const B&);
13 public:
14   B ();
15   typedef void * T;
16 };
17
18 struct C : public A {
19   T f ();                       // { dg-bogus "" } 
20 };