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++.mike
/
p438.C
blob
9afab638abc715217232a0a4095ed1227b1bbe92
1
// Build don't link:
2
// prms-id: 438
3
4
class D;
5
6
class C
7
{
8
public:
9
void test() const;
10
};
11
12
class D
13
{
14
public:
15
void a(C& b); // ERROR - referenced below
16
};
17
18
void C::test() const
19
{
20
D d;
21
22
d.a(*this); // ERROR - *this is const, so should get error
23
}