aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash13.C
blob: c375e9b72207906785fcd576955de85af3b0c8a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Build don't link: 
// GROUPS passed old-abort
class gen_op
{
public:
  gen_op ( );
  gen_op (const gen_op &Op1);
  ~gen_op ( );
  void operator = (const gen_op &Op1);
};




class spin_op 
{
public:
  spin_op();
  spin_op(const spin_op& SOp);
  ~spin_op();
  void operator= (const spin_op& SOp);
  operator gen_op();
};


spin_op Fe();


gen_op Spul_U_axis()
{
  gen_op U1;
  U1 = Fe();
}; // ERROR - reaches end of non-void function

int
main () {};