aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/typeck3.C
blob: 76c36843fd602bc6fabbc1796dc5ee53a3fdae87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Build don't link: 
// GROUPS passed typeck
// typeck file
// From: Dror Caspi <dror@fibronics.co.il>
// Date:     Wed, 9 Jun 1993 17:43:48 +0300
// Subject:  function typedefs in classes
// Message-ID: <199306091443.AA03735@zorba.fibronics.co.il>

class a
{
 public:
   typedef void (X)();

   X x;   // Member function of type X
};

class b
{
 public:
   typedef void (X)();   //!!!!!! g++ says : syntax error before `;'

   X x;   // Member function of type X
};