aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/inherit/ambig1.C
blob: 3596bb5983e75ac742043ed2652706e58600e859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/51614

struct A
{
  void foo();
};

struct B : A {};
struct C : A {};

struct D : B, C
{
  D() { A::foo(); }		// { dg-error "ambiguous" }
};