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

Compatility fixes for GCC5 #2448

Merged
merged 3 commits into from Jun 7, 2022
Merged

Compatility fixes for GCC5 #2448

merged 3 commits into from Jun 7, 2022

Conversation

Morwenn
Copy link
Contributor

@Morwenn Morwenn commented Jun 5, 2022

I use GCC5 in my projects as the oldest GCC compiler to be C++14 conformant. Of course there are a few small issues, but I believe it is a good "oldest" target for C++14.

This PR contains a few changes to fix Catch2v3 compilation with GCC5, which has been broken since v3.0.0-preview5:

  • One that seems linked to some C++17 change to inherited constructors, backported as a DR all the way back to C++11.
  • One that's apparently linked to changes to std::pair constructor though I did not explore further to understand where it originally came from.

Don't use inherited constructors, forward manually instead. This
basically reverts 61f8031.

I believe that GCC5 does not implement P0136, a C++17 change that made
inherited constructors actually usable and was backported as a DR all
the way to C++11.
@codecov
Copy link

codecov bot commented Jun 5, 2022

Codecov Report

Merging #2448 (4ec8b2a) into devel (0c13d02) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 4ec8b2a differs from pull request most recent head 0ed85c6. Consider uploading reports for the commit 0ed85c6 to get more accurate results

@@            Coverage Diff             @@
##            devel    #2448      +/-   ##
==========================================
+ Coverage   91.51%   91.52%   +0.01%     
==========================================
  Files         159      159              
  Lines        7501     7512      +11     
==========================================
+ Hits         6864     6875      +11     
  Misses        637      637              

@horenmar horenmar merged commit a0ece7b into catchorg:devel Jun 7, 2022
@horenmar horenmar added the Tweak label Jun 7, 2022
@Morwenn Morwenn deleted the gcc5-compat branch June 7, 2022 19:15
@Morwenn
Copy link
Contributor Author

Morwenn commented Jun 7, 2022

Thanks for the continued support :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants