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]

Re: cannot pass objects of non-POD type


On Wed, Oct 24, 2007 at 12:15:03PM -0700, Andrew Pinski wrote:

> > a "real" illegal instruction, caused by g++ doing something different
> > that I expected with the String object as an argument? Or is the illegal
> > instruction just a "place marker" that is generated because I passed
> > a non-POD as an argument?
> 
> The latter.

Is there a reason it's not just an error, then? (As a user) I don't
see the point of something being a warning when the compiled code is
intentionally set up to crash.

-Jack


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