sizeof(void) etc. should be a hard error in C++.

PR16872.