I was performing a rebuild of Blender after fixing a FTBFS error with openCOLLADA and ran into an interesting error:

[ 78%] Building CXX object source/blender/imbuf/intern/dds/CMakeFiles/bf_imbuf_dds.dir/DirectDrawSurface.cpp.o
cd /builddir/build/BUILD/blender-2.76/cmake-make/source/blender/imbuf/intern/dds && /usr/lib64/ccache/c++   -DHAVE_STDBOOL_H -DNDEBUG -DWITH_DDS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__ -I/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds -I/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern -I/builddir/build/BUILD/blender-2.76/source/blender/imbuf -I/builddir/build/BUILD/blender-2.76/source/blender/blenkernel -I/builddir/build/BUILD/blender-2.76/source/blender/blenlib -I/builddir/build/BUILD/blender-2.76/source/blender/makesdna -I/builddir/build/BUILD/blender-2.76/intern/guardedalloc -I/builddir/build/BUILD/blender-2.76/intern/utfconv  -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Werror=return-type -Werror=declaration-after-statement -Werror=implicit-function-declaration -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wundef -Wformat-signedness -Wuninitialized -Wundef -Wmissing-declarations -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -funsigned-char -fno-strict-aliasing  -fuse-ld=gold -fopenmp  -msse2  -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -O2 -DNDEBUG   -o CMakeFiles/bf_imbuf_dds.dir/DirectDrawSurface.cpp.o -c /builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp
/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp: In member function 'void DirectDrawSurface::mipmap(Image*, uint, uint)':
/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp:1105:20: error: 'max' was not declared in this scope
   w = max(1U, w / 2);
                    ^
/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp: In member function 'void DirectDrawSurface::readBlockImage(Image*)':
/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp:1226:39: error: 'min' was not declared in this scope
    for (uint y = 0; y < min(4U, h-4*by); y++)
                                       ^
/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp: In function 'Color32 buildNormal(uint8, uint8)':
/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp:1243:56: error: 'max' was not declared in this scope
  uint8 z = clamp(int(255.0f * (nz + 1) / 2.0f), 0, 255);
                                                        ^
/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp:1243:64: error: 'min' was not declared in this scope
  uint8 z = clamp(int(255.0f * (nz + 1) / 2.0f), 0, 255);
                                                                ^
/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp: In member function 'uint DirectDrawSurface::mipmapSize(uint) const':
/builddir/build/BUILD/blender-2.76/source/blender/imbuf/intern/dds/DirectDrawSurface.cpp:1382:20: error: 'max' was not declared in this scope
   w = max(1U, w / 2);
                    ^
source/blender/imbuf/intern/dds/CMakeFiles/bf_imbuf_dds.dir/build.make:110: recipe for target 'source/blender/imbuf/intern/dds/CMakeFiles/bf_imbuf_dds.dir/DirectDrawSurface.cpp.o' failed
--- end ---

This seems like a pretty basic error in something that has worked fine for a very long time. Is there anything in the GCC 6 update that would cause this?

Thanks,
Richard