RFR: 8335108: Build error after JDK-8333658 due to class templates

Julian Waters jwaters at openjdk.org
Wed Jun 26 16:13:31 UTC 2024


On Tue, 25 Jun 2024 18:52:20 GMT, Sonia Zaldana Calles <szaldana at openjdk.org> wrote:

> Hi all, 
> 
> This PR addresses [8335108](https://bugs.openjdk.org/browse/JDK-8335108). 
> 
> The error arises as template-id is not allowed for constructor/destructor in C++20. 
> 
> Testing: 
> - [x] Compilation succeeds with g++ 14.1.1.
> 
> Thanks, 
> Sonia

Ah, this annoying g++ issue again. I honestly don't like that we have to adhere to C++20 without any of its benefits while being on C++14, but I think Kim has mentioned that this is a desirable warning to have, so approved

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

Marked as reviewed by jwaters (Committer).

PR Review: https://git.openjdk.org/jdk/pull/19890#pullrequestreview-2140672045


More information about the hotspot-dev mailing list