Bug #103757 Compile as C++17
Submitted: 20 May 2021 13:17 Modified: 17 Jun 2021 14:02
Reporter: Steinar Gunderson Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.27 OS:Any
Assigned to: CPU Architecture:Any

[20 May 2021 13:17] Steinar Gunderson
Description:
Now that all of our non-EOL platforms are C++17-capable, turn on the appropriate flags to compile as C++17.

How to repeat:
N/A

Suggested fix:
N/A
[8 Jun 2021 6:00] Erlend Dahl
Bug#103929 Contribution: fix compilation error (c++17)

was marked as a duplicate.
[17 Jun 2021 14:02] Paul DuBois
Posted by developer:

Fixed in 8.0.27.

MySQL now can be compiled using C++17. The following minimum version
requirements apply for compiler support:

* GCC 7.1 or Clang 5 (Linux)
* XCode 10 (macOS)
* GCC 10 (Solaris)
* Visual Studio 2019 Update 4 (Windows)

In particular, on Solaris, GCC is now the only supported compiler.
The code has been cleaned up to remove adaptations and workarounds
for Sun Studio, Oracle Studio, and SunPro.