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
/
pr80891-3.C
blob
e693a357c22f348fb4182bf85b4e861bbda1ecc7
1
// PR c++/80891 part 3
2
// We were failing to mark OVERLOADS held in template definitions as
3
// immutable in non-call contexts.
4
5
namespace std {
6
int endl();
7
}
8
9
using std::endl;
10
11
template <class RealType> void test_spots(RealType)
12
{
13
using namespace std;
14
RealType a;
15
a << endl;
16
}
17
18
template <typename T>
19
void operator<< (T, int (&)());
20
21
struct Q {};
22
void test_maintest_method()
23
{
24
Q q;
25
test_spots(q);
26
}