repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
pr71826.C
blob
753fd7e14cec1a861967eae75c0c73df25b9f53b
1
// PR c++/71826
2
// { dg-do compile }
3
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
};
10
11
int
12
main ()
13
{
14
C <int> c;
15
c.f ();
16
return 0;
17
}