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++.jason
/
scoping15.C
blob
5485b29b32a3af8a1b5540a1700ac7b0c4150ccf
1
// { dg-do assemble }
2
// Bug: g++ ignores the :: qualification and dies trying to treat an integer
3
// variable as a list of functions.
4
5
class DComplex {
6
public:
7
friend double imag(const DComplex& a);
8
};
9
10
class FComplex {
11
public:
12
friend float imag(const FComplex& a);
13
};
14
15
void
16
scnrm2(FComplex cx[])
17
{
18
int imag;
19
::imag( cx[0] );
20
}