------- Comment #21 from ian at airs dot com 2006-10-03 23:44 ------- In C a general allocation function should work with a char array. A specific allocation function should use a union. I don't think there are many existing exceptions to these guidelines.
I think that code like that in PR 29272, which casts Node* to void* to Foo*, is an unusual case. And I believe we can handle that code correctly because of the use of memcpy. And if the code didn't use memcpy it would be clearly noncomformant--which isn't to say that we should deliberately break it, but we don't need to try extra hard to make it work. So I don't see a serious problem in C either. Am I missing something/ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29286