[cfe-commits] [PATCH] differentiate between non-POD and incomplete with regard to va_arg
david.majnemer at gmail.com
Mon Jun 13 01:16:15 PDT 2011
Right now, the code base is correct in saying that many types, like
void, are non-POD when passed in to va_arg.
While it is true that "struct X" is not a POD type, we do not say why
it is not a POD type.
I think that it would be more clear to say that the type is
incomplete, this had a side effect of making a bit more sense in C99
mode where non-POD is not really part of the lingo.
The attached patch should make it a little more clear. It also moves a
preexisting test to a more appropriate location.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3586 bytes
Desc: not available
More information about the cfe-commits