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