On 06/11/2010 10:15 AM, yuanbin wrote:
gcc initial the first member of union now, This is not the C standard also. I just want gcc initial the last member of union with some switch.
Why do you want the last one? Is there a compiler that does that (e.g. MSVC++)? If yes, it can be toggled by -fms-extensions. But if no, there's no reason why you or whoever wrote coo.h cannot just reorder the fields in the union.
Paolo