public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Moving from gcc-3.2 to gcc-3.2.2: "cannot pass objects of non-POD type"
@ 2003-05-25 14:51 Abramov, Evgenia
  0 siblings, 0 replies; only message in thread
From: Abramov, Evgenia @ 2003-05-25 14:51 UTC (permalink / raw)
  To: gcc; +Cc: Abramov, Evgenia

[-- Attachment #1: Type: text/plain, Size: 1720 bytes --]

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 #2: try.ZIP --]
[-- Type: application/x-zip-compressed, Size: 202605 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-25 11:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-25 14:51 Moving from gcc-3.2 to gcc-3.2.2: "cannot pass objects of non-POD type" Abramov, Evgenia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).