summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p8460.C
blob: 4e0f0d22c12d7eaf319f381f0d89bb5444675da9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// prms-id: 8460

class A {
public:
  A();
  A(int) { }
  A(const A&) { }
private:
};

int main()
{
  A a;
  
  a.A(1);	// { dg-error "" } cannot find name this way
}