Error compiling RT

Hi,
today I was compiling RT from source, master branch, and I encountered an error (first time!)
I use RT_Build.sh by Simon Cropper, on linux mint 17.3 (gtk2)
I compiled last time 4.2.876 without problem.

This is part of the output:
[…]
[ 32%] Building CXX object rtengine/CMakeFiles/rtengine.dir/lcp.cc.o
[ 33%] Building CXX object rtengine/CMakeFiles/rtengine.dir/dcp.cc.o
[ 33%] Building CXX object rtengine/CMakeFiles/rtengine.dir/ipretinex.cc.o
[ 34%] Building C object rtengine/CMakeFiles/rtengine.dir/cJSON.c.o
/home/sysop/Devel/RT_build/RawTherapee/rtengine/dcp.cc: In member function ‘void rtengine::DCPProfile::makeXyzCam(const rtengine::ColorTemp&, const Triple&, const Matrix&, int, rtengine::DCPProfile::Matrix&) const’:
/home/sysop/Devel/RT_build/RawTherapee/rtengine/dcp.cc:1404:10: error: the value of ‘xyz_sRGB’ is not usable in a constant expression
}};
^
In file included from /home/sysop/Devel/RT_build/RawTherapee/rtengine/color.h:27:0,
from /home/sysop/Devel/RT_build/RawTherapee/rtengine/iimage.h:30,
from /home/sysop/Devel/RT_build/RawTherapee/rtengine/rtengine.h:31,
from /home/sysop/Devel/RT_build/RawTherapee/rtengine/imageio.h:31,
from /home/sysop/Devel/RT_build/RawTherapee/rtengine/imagefloat.h:25,
from /home/sysop/Devel/RT_build/RawTherapee/rtengine/dcp.h:29,
from /home/sysop/Devel/RT_build/RawTherapee/rtengine/dcp.cc:22:
/home/sysop/Devel/RT_build/RawTherapee/rtengine/iccmatrices.h:57:14: note: ‘xyz_sRGB’ was not declared ‘constexpr’
const double xyz_sRGB[3][3] = {{0.4360747, 0.3850649, 0.1430804},
[…]

Thanks for reporting the Issue. Can you share some more details please (gcc version for example) ?. I tested compile before merge and it compiled fine.

Ingo

@floessie, can you take a look please?

I confirm the issue when build on my Sabayon notebook using gcc 4.9.3

Fixed with this commit

It all works now. Thanks!