This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Moving from gcc-3.2 to gcc-3.2.2: "cannot pass objects of non-POD type"


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

Attachment: try.ZIP
Description: Zip compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]