aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/synth4.C
blob: 89ecf2dc07493d5c720460f7be7ae75849577c1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link:

struct X {
  X();
};
typedef	void (X::*mfp)();
struct Y {
  Y();
  mfp memfp;
};
void f()
{
  Y *y1, *y2 ;
  *y1 = *y2;		 // gets bogus error - failed to synthesize op=
}