Bug #79466 can not compile mysql 5.7.9 with std=c++11
Submitted: 1 Dec 2015 0:38 Modified: 11 Jan 2016 7:57
Reporter: Richard Prohaska Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7.9 OS:Ubuntu (14.04)
Assigned to: CPU Architecture:Any

[1 Dec 2015 0:38] Richard Prohaska
Description:
mysql 5.7.9 does not compile with -std=c++11 with gcc 4.8.3 on ubuntu 14.04.  handling of some literals is slightly different.  c++11 deprecated auto_ptr in favor of unique_ptr.   and some other issues exist.

How to repeat:
CXXFLAGS=-std=c++11 cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../mysql-server-install-tsan-7 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/home/rfp/boost/ -DDISABLE_SHARED=ON ../mysql-server && make

Suggested fix:
it would be nice if mysql code were compatible with c++11 standard and buildable with gcc and clang.
[1 Dec 2015 8:59] MySQL Verification Team
Hello Richard,

Thank you for the report.

Thanks,
Umesh
[11 Jan 2016 7:57] Jon Olav Hauglid
As mentioned here 
http://mysqlserverteam.com/mysql-5-8-planning-c11-and-native-partitioning/
we have switched to C++11 for 5.8. There are no plans to support C++11 for
5.7 as several of our supported 5.7 platforms have too old compilers that do not 
support C++11.