summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/virtual2.C
blob: 9769d4ab730c13c6ddc1113eff2047f1711f023c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//PR c++/29022

struct A
{
  operator int();
};

struct B : virtual A, A<0> {};  // { dg-error "token" }

int foo(B &b)
{
  return b;                     // { dg-error "cannot convert" }
}