• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Gcc warning instead of error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gcc warning instead of error


  • Subject: Re: Gcc warning instead of error
  • From: "Chris Jefferson" <email@hidden>
  • Date: Wed, 23 Jul 2008 12:42:05 +0100

2008/7/22 Steve Checkoway <email@hidden>:
> Gcc will emit a warning for what should really be an error in the following
> case:
>
> struct foo { foo() {} };
> void bar( int i, ... );
> void baz() { bar( 0, foo() ); }
>
> compiles to
>
> __Z3bazv:
>        stmw r30,-8(r1)
>        stwu r1,-48(r1)
>        mr r30,r1
>        trap
>
> 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.

Chris
 _______________________________________________
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

  • Follow-Ups:
    • Re: Gcc warning instead of error
      • From: Stefan Werner <email@hidden>
    • Re: Gcc warning instead of error
      • From: Steve Checkoway <email@hidden>
References: 
 >Gcc warning instead of error (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Is iPhone discussion allowed at this point?
  • Next by Date: Re: Gcc warning instead of error
  • Previous by thread: Re: Gcc warning instead of error
  • Next by thread: Re: Gcc warning instead of error
  • Index(es):
    • Date
    • Thread