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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
using36.C
blob
966c60b896147b8981203c8c2bec92989476ca4f
1
// PR c++/25994
2
// { dg-do run }
3
4
struct B1
5
{
6
void f (char) {}
7
void f (double) { __builtin_abort(); }
8
};
9
10
struct B2
11
{
12
void f (double) { __builtin_abort(); }
13
void f (int) {}
14
};
15
16
struct D : public B1, public B2
17
{
18
using B1::f;
19
using B2::f;
20
void g ()
21
{
22
f ('a'); // should call B1::f(char)
23
f (33); // should call B2::f(int)
24
}
25
};
26
27
int main()
28
{
29
D d;
30
d.g();
31
}