[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aed64ce6-3765-4099-8211-032d4722f184@p183>
Date: Wed, 10 Jan 2024 10:13:07 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: David Howells <dhowells@...hat.com>
Cc: "H. Peter Anvin" <hpa@...or.com>, pinskia@...il.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 00/45] C++: Convert the kernel to C++
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*.
Powered by blists - more mailing lists