2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr71826.C
blob753fd7e14cec1a861967eae75c0c73df25b9f53b
1 // PR c++/71826
2 // { dg-do compile }
4 template <class> struct A { int i; };   // { dg-message "note" }
5 struct B { void i () {} };              // { dg-message "note" }
6 template <class T> struct C : A <T>, B
7
8   void f () { i (); }                   // { dg-error "is ambiguous" }
9 };
11 int
12 main ()
13
14   C <int> c;
15   c.f ();
16   return 0;