Re: Gcc warning instead of error
Re: Gcc warning instead of error
- Subject: Re: Gcc warning instead of error
- From: Steve Checkoway <email@hidden>
- Date: Wed, 23 Jul 2008 05:09:45 -0700
On Jul 23, 2008, at 4:42 AM, Chris Jefferson wrote:
2008/7/22 Steve Checkoway <email@hidden>:
with the warning, "warning: cannot pass objects of non-POD type
'struct foo'
through '...'; call will abort at runtime."
Unfortunately this behaviour is mandated by the C++ standard, so it is
very unlikely apple or gcc would change it.
What? The standard is very clear about this. The behavior is
undefined. It's in section 5.2.2.7 [expr.call]. Gcc can do anything it
likes and what it likes to do is give a warning. It should give an
error.
--
Steve Checkoway
"Anyone who says that the solution is to educate the users
hasn't ever met an actual user." -- Bruce Schneier
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden