Re: [PATCH 00/45] C++: Convert the kernel to C++

From: Alexey Dobriyan
Date: Wed Jan 10 2024 - 02:13:18 EST


On Tue, Jan 09, 2024 at 11:40:45PM +0000, David Howells wrote:
> There was also a problem with leaving gaps in static array initialisation and
> a problem with statically initialising fields out of order (with respect to
> the order they're declared in the struct declaration). Possibly these have
> been fixed in g++.

They weren't :-(
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113124

Right now g++ hard errors some patterns of C99 inititialisation which
clang++ allows (with warnings which can be turned off).

However, clang++ doesn't believe in pointer arithmetic on void*.