[jdk11u-dev] RFR: 8324307: [11u] hotspot fails to build with GCC 12 and newer (non-static data member initializers)

Goetz Lindenmaier goetz at openjdk.org
Wed Jan 31 08:13:06 UTC 2024


On Mon, 22 Jan 2024 12:22:23 GMT, Jonathan Dowland <jdowland at openjdk.org> wrote:

> GCC 12 and newer warn about non-static data member initialisers when operating under -std=gnu++98 (jdk11u-dev's C++ standards version). These warnings are promoted to errors by default.
> 
> This is an issue for jdk11u-dev which uses the C++ standard version '-std=gnu++98'. It is not an issue for later JDK versions which have moved to newer standards (JEP 347 moved JDK16 to -std=c++14): therefore an 11u-specific fix is required.
> 
> The approach used in this PR is to remove the initialisers, in common with what we did when backporting the same code to jdk8u-dev.

Removing the tag in the meantime

-------------

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2470#issuecomment-1918591295


More information about the jdk-updates-dev mailing list