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

Test with more modern compilers & standards #990

Open
h-vetinari opened this issue Dec 12, 2024 · 1 comment
Open

Test with more modern compilers & standards #990

h-vetinari opened this issue Dec 12, 2024 · 1 comment

Comments

@h-vetinari
Copy link

Congratulations to the 1.87 release! 🥳

Looking at the release notes, I see under "Boost's primary test compilers are:"

Linux:
    Clang, C++03: 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 12.0.0, 13.0.0, 14.0.0, 15.0.0
    Clang, C++11: 3.4, 11.0.0, 13.0.0, 14.0.0, 15.0.0
    Clang, C++14: 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 5.0, 12.0.0, 13.0.0, 14.0.0, 15.0.0
    Clang, C++17: 6.0.1, 7.0.0, 8.0.0, 9.0.0, 10.0.0, 11.0.0, 12.0.0, 13.0.0, 14.0.0, 15.0.0
    Clang, C++20: 11.0.0, 12.0.0, 13.0.0, 14.0.0, 15.0.0
    GCC, C++03: 4.6.3, 11, 12
    GCC, C++11: 4.7.3, 4.8.5, 11, 12
    GCC, C++14: 5.4.0, 6.4.0, 7.3.0, 8.0.1, 9.1.0, 11, 12
    GCC, C++17: 7.3.0, 8.0.1, 9.1.0, 11, 12
    GCC, C++20: 8.0.1, 9.1.0, 10, 11, 12

This is almost 2.5 years behind current compilers on linux (GCC 12 released in May 2022, GCC 14 in May 2024; Clang 15 released in Sept. 2022, Clang 19 in Sept. 2024).

I don't know if this is just the documentation that's out of date, or the actual testing, but in either case it should be updated. Compilers regularly add tighter warnings (or even error-by-default) on various aspects of the language, and IMO it should be expected of one of the most prominent C++ libraries to be compatible with current compilers upon release.

Note, I'm not advocating to test the entire version range. For example, I hardly think that testing Clang 3.5, 3.6, 3.7, 3.8, 3.9 (in addition to 3.4) has any benefits in 2025. I leave the question of whether resp. how to thin out the list to the maintainers here, but the newer end should be supported.

An example where users ran into this: #857 (though probably many more; haven't searched subproject issue trackers).

@h-vetinari h-vetinari changed the title Test with more modern compilers Test with more modern compilers & standards Dec 12, 2024
@h-vetinari
Copy link
Author

Ah, and obviously C++23 & C++26 should be tested as well.

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

No branches or pull requests

1 participant