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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
opeq3.C
blob
1152aa089176f2f71dc37805eff417389b49c610
1
// Bug: g++ generates code for assignment in invalid situations.
2
// Build don't link:
3
4
class X {
5
int& a;
6
public:
7
X(int& i): a(i) { };
8
};
9
10
void foo ()
11
{
12
int one=1, two=2;
13
X a(one), b(two);
14
a = b; // ERROR - no assignment semantics defined
15
}