repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
using14.C
blob
ebb4e090a37ca09b9aff2d186d852a306a1c08d2
1
// PR c++/26102
2
3
template <class T> struct B1 { int i(); };
4
5
struct B2 { int i(); };
6
7
template <class T> struct C : public B1<T>, public B2
8
{
9
using B2::i;
10
void f()
11
{
12
i(); // should be accepted
13
i.i(); // { dg-error "member" }
14
}
15
};
16
17
int main()
18
{
19
C<int> c;
20
c.f(); // { dg-message "instantiated" }
21
}