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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
pr80891-1.C
blob
725ca190ae9b05638bf9e1f7f81277aa560ef35e
1
// PR c++/80891 part 1
2
// std::endl is found via two paths and most_specialized_instantiation
3
// gets confused.
4
5
namespace std {
6
struct A {
7
void operator<<(A(A));
8
};
9
template <typename _CharT, typename _Traits> _CharT endl(_Traits);
10
A a;
11
}
12
13
using std::endl;
14
15
void chi_squared_sample_sized()
16
{
17
using namespace std;
18
a << endl;
19
}