On Sat, Jan 18, 2014 at 10:46:50AM +0000, Justin Cormack wrote: > I believe gcc is correct here, you are only allowed to alias via a > char pointer or the original type. Because you put a void pointer in > instead gcc is right to complain.
Right, but actually the complaint does not go away if we make the ? operator into an if () with two separate memcpy() calls without any casts. Martin