cannot pass objects of non-POD type [] through '...'
Daniel Franke
daniel.franke@imbs.uni-luebeck.de
Tue Jul 1 14:53:00 GMT 2003
Hi,
I tried to compile something similar to:
--cut--
ostream& func1(ostream& s, ...) { ... }
ostream& func2(ostream& s, ...) { ... }
ostream& (*fp)(ostream&, ...) = func1;
void foo() {
[...]
fp(mystream, <any more arguments>)
[...]
}
--cut--
gcc-3.2: warning, about "cannot pass objects of non-POD ..."
works fine
gcc-3.2.2: same message, but now as error
gcc-3.3 (20030226) again as warning (same message) plus "program will abort"
... works nevertheless fine again *g*
My question: What's going on??
I don't try to pass any stream object through '...', but 'stream' is my last
named argument in calls to 'va_start'. So, why isn't this allowed??
May I ignore the warnings and proceed (using gcc-3.2 or gcc-3.3) or do I
have to redesign my app? Is this subject to further changes?
Please tell me! Thnx!
Daniel Franke
--
Dipl.-Math. (FH) Daniel Franke
Institut fuer Medizinische Biometrie und Statistik
Medizinische Universitaet zu Luebeck
Ratzeburger Allee 160, Haus 4
23538 Luebeck
Telefon: 0451-500-2786
Telefax: 0451-500-2999
daniel.franke@imbs.uni-luebeck.de
More information about the Gcc-bugs
mailing list