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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template24.C
blob
0efce9ff12ec166b0ad993cf297a232388208b63
1
// { dg-do run }
2
// Bug: g++ doesn't find the conversion from ostream_withassign to ostream.
3
4
#include <iostream>
5
6
template <class T>
7
struct A {
8
T t;
9
};
10
11
template <class T>
12
std::ostream & operator<< (std::ostream & os, A<T> & a)
13
{
14
os << a.t;
15
return os;
16
}
17
18
int main ()
19
{
20
A<int> a = { 1 };
21
std::cout << a << std::endl;
22
}
23