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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
typeck4.C
blob
21e2d96b4b9368ed714372d3149f30c1697f7619
1
// { dg-do assemble }
2
// GROUPS passed typeck
3
class A {
4
public:
5
const int &operator[]( int i );
6
private:
7
int k;
8
};
9
10
const int& A::operator[]( int i )
11
{
12
return k;
13
}
14
15
16
void ff( A &anA )
17
{
18
int &ani = anA[0];// { dg-error "" }
19
20
ani = 7;
21
}