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
* Makefile.in: Rebuilt.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
operators10.C
blob
c87880fb9a878dcf176dd7c7e6e01ee7e51e9e4c
1
// Build don't link:
2
// GROUPS passed operators
3
// opr-eq file
4
// Message-Id: <9306040324.AA22954@balder.cs.wisc.edu>
5
// From: so@cs.wisc.edu (Bryan So)
6
// Subject: g++ bug
7
// Date: Thu, 3 Jun 93 22:24:13 -0500
8
9
template <class T>
10
struct Test {
11
int data;
12
Test& operator=(int i) { data = i; return *this; }
13
};
14
15
16
int main()
17
{
18
Test<int> i, j;
19
20
i = j;
21
22
return 0;
23
}