M
Mike Cote
I have the following function call
p->f(G());
where p is a pointer of type P
and a declaration in scope of
void P::f(G& g);
the gcc 3.2 compiler won't match the call to the function.
If I have
G gTmp;
p->f(gTmp);
with the same function declaration in scope
everything works.
Why? 4 other compilers accept it including gcc 2.6.
Is there a gcc 3.2 option to make this work?
p->f(G());
where p is a pointer of type P
and a declaration in scope of
void P::f(G& g);
the gcc 3.2 compiler won't match the call to the function.
If I have
G gTmp;
p->f(gTmp);
with the same function declaration in scope
everything works.
Why? 4 other compilers accept it including gcc 2.6.
Is there a gcc 3.2 option to make this work?