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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
using42.C
blob
bca65acc74fedc0d162115da97b515ba8caa84b7
1
// PR c++/30195
2
// { dg-do run }
3
4
template <class T>
5
struct B
6
{
7
void foo(T) {}
8
};
9
10
template<class T>
11
struct Out
12
{
13
struct D : B<T>, B<double>
14
{
15
using B<T>::foo;
16
using B<double>::foo;
17
void bar() { foo(3); }
18
};
19
};
20
21
int main()
22
{
23
Out<int>::D x;
24
x.bar();
25
return 0;
26
}