Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cpp_std=c++23 with gcc-11. #12340

Merged
merged 1 commit into from
Oct 9, 2023
Merged

Conversation

bredelings
Copy link
Contributor

This PR allows using cpp_std=c++23 with gcc-11 as per issue #12291.

Currently meson requires GCC version >=12.2.0 for cpp_std=c++23. However, this seems incorrect, as gcc-11 also supports -std=c++23. Obvious c++23 support isn't complete in gcc-11, but it isn't complete in gcc-12 either.

The commit adding support for -std=c++23 was done in January 2021, several months before the gcc-11 release, so 11.0.0 seems fine.

In GCC-11, three new features are enabled by this flag:

@tristan957 tristan957 added this to the 1.3.0 milestone Oct 9, 2023
@tristan957
Copy link
Contributor

I guess technically this could be a 1.2.3 issue. I will let someone else make that call.

@jpakkane jpakkane merged commit 84b8d25 into mesonbuild:master Oct 9, 2023
@bredelings bredelings deleted the cpp23-gcc11 branch October 9, 2023 20:58
@tristan957 tristan957 modified the milestones: 1.3.0, 1.2.3 Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants