[cfe-dev] 'const void' is considered to be an incomplete type by clang 3.5.0
Yuri
yuri at rawbw.com
Mon Apr 21 12:16:16 PDT 2014
On 04/21/2014 12:07, Hal Finkel wrote:
> What do you mean? As I understand it, void is always incomplete. What do you expect sizeof(const void) to return?
'incomplete' implies that it can be completed, and 'const void' can't be
completed. So there are two different situations and this message
doesn't differentiate between them.
The message should say "can't apply 'sizeof' to 'const void'" to be more
clear.
Curiously, clang-3.3 thought that sizeof(const void) is 1.
Yuri
More information about the cfe-dev
mailing list