[jdk11u-dev] Integrated: 8324307: [11u] hotspot fails to build with GCC 12 and newer (non-static data member initializers)
Jonathan Dowland
jdowland at openjdk.org
Thu Feb 15 21:54:03 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.
This pull request has now been integrated.
Changeset: 1f516f62
Author: Jonathan Dowland <jdowland at openjdk.org>
URL: https://git.openjdk.org/jdk11u-dev/commit/1f516f62f2f7f936ac42fdd0346b3a128dc26634
Stats: 8 lines in 2 files changed: 0 ins; 0 del; 8 mod
8324307: [11u] hotspot fails to build with GCC 12 and newer (non-static data member initializers)
Reviewed-by: sgehwolf
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/2470
More information about the jdk-updates-dev
mailing list