OSDN Git Service

* name-lookup.c (current_decl_namespace): Non-static.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / inherit / virtual3.C
1 //PR c++/29022
2
3 struct A
4 {
5   operator int();
6 };
7
8 struct B : virtual A;   // { dg-error "token" }
9
10 int foo(B &b)
11 {
12   return b;             // { dg-error "cannot convert" }
13 }