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
/
incomplete1.C
blob
8b738d9f60651e94bae4bb8ed0ce0cb9acffe7a6
1
// The reference parameter to fred isn't dereferenced properly.
2
// Build don't link:
3
4
class Gump {};
5
Gump operator & (const Gump x){return x;}
6
7
class B;
8
9
void *sam(int &x)
10
{return &x;}
11
12
const void *fred(const B& x)
13
{return &x;} // "&x" causes the compilation error.
14
15
class B {};