This is not the bug. MathGL just use the settings which was specified/found at configuration stage. You just need to specify -std=c++11 at cmake compiler flag to force strict compatibility with C++11, i.e. disable gnu extension(s).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is not the bug. MathGL just use the settings which was specified/found at configuration stage. You just need to specify -std=c++11 at cmake compiler flag to force strict compatibility with C++11, i.e. disable gnu extension(s).