[cxx-abi-dev] Passing non-trivial types through ...
Jason Merrill
jason at redhat.com
Wed Aug 13 21:51:48 UTC 2014
On 08/13/2014 05:38 PM, Dennis Handly wrote:
> Did the customer say how he was going to accept it on the callee side?
My proposal is that this would all be handled transparently by the
compiler, which knows which types need to be handled this way.
> aCC6 allows it with a warning but the results are unpredictable:
> warning #3290-D: Passing a non-POD object to a function with variable
> arguments has undefined behavior. Object will be copied onto
> the stack instead of using a constructor.
>
> (This is a bitwise copy.)
Ah, so my proposal would be incompatible with the current aCC behavior.
Hmm.
Jason
More information about the cxx-abi-dev
mailing list