Moving from gcc-3.2 to gcc-3.2.2: "cannot pass objects of non-POD type"
Abramov, Evgenia
evgenia.abramov@intel.com
Sun May 25 14:51:00 GMT 2003
Hi,
We face the following problem with moving to the compiler gcc-3.2.2: the
same code can be successfully compiled with the gcc-3.2 and gives
compilation error “cannot pass objects of non-POD type” while using the
gcc-3.2.2.
This error is connecting with passing arguments of user-defined types into
functions with ellipsis (…) argument list.
Is it the planned change/improvement of the new compiler version ( in this
case the code change is requirement) or the compiler bug ( in this case
maybe the next compiler release fixes it)?
Attached you can file the test case ( preprocessed file) try.i:
<<try.ZIP>>
* /usr/intel/pkgs/gcc/3.2/bin/g++ -w -c try.i
* /usr/intel/pkgs/gcc/3.2.2/bin/g++ -w –c try.i
try.cpp: In function `void basicModel(long int)':
try.cpp:51: cannot pass objects of non-POD type `class IloIntVar'
through `...'
try.cpp:51: cannot pass objects of non-POD type `class IloIntVar'
through `...'
try.cpp:51: cannot pass objects of non-POD type `class IloIntVar'
through `...'
try.cpp:51: cannot pass objects of non-POD type `class IloIntVar'
through `...'
try.cpp:51: cannot pass objects of non-POD type `class IloIntVar'
through `...'
try.cpp:51: cannot pass objects of non-POD type `class IloIntVar'
through `...'
try.cpp:51: cannot pass objects of non-POD type `class IloIntVar'
through `...'
try.cpp:51: cannot pass objects of non-POD type `class IloIntVar'
through `...'
try.cpp: In function `void modelWithPredicates(long int)':
try.cpp:192: cannot pass objects of non-POD type `class IloIntVar'
through
`...'
try.cpp:192: cannot pass objects of non-POD type `class IloIntVar'
through
…………………….
Thanks in advance,
Genia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try.ZIP
Type: application/x-zip-compressed
Size: 202605 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030525/bf0ecd4d/attachment.bin>
More information about the Gcc
mailing list