RFR: 8331352: error: template-id not allowed for constructor/destructor in C++20
Kim Barrett
kbarrett at openjdk.org
Wed May 1 21:31:52 UTC 2024
On Tue, 30 Apr 2024 09:14:05 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> Seems weird that we're facing C++20 issues when HotSpot is only on C++14. This seems like it should be in the disabled warnings list of HotSpot for erroneous warnings that gcc is giving us, just my 2 cents
I agree it's a bit weird that the forward -Wc++N-compat warnings are enabled by -Wall, but presumably the gcc
maintainers have already had that discussion. So long as it's not causing significant problems (and in this case
I think it's not), I don't think we should disable either the forward compat warnings or the specific warnings that
fall under them. If we were going to disable -Wc++20-compat I'd be tempted to re-enable -Wtemplate-id-cdtor
as a thing we don't want folks to do anyway.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19009#issuecomment-2089168289
More information about the hotspot-dev
mailing list