error: ‘static_assert’ was not declared in this scope
$ scons llvm=no
[...]
Compiling src/compiler/glsl/ir_constant_expression.cpp ...
src/compiler/glsl/ir_constant_expression.cpp:76:4: warning: identifier ‘static_assert’ is a keyword in C++11 [-Wc++0x-compat]
static_assert(sizeof(float) == sizeof(unsigned int),
^
src/compiler/glsl/ir_constant_expression.cpp: In function ‘float bitcast_u2f(unsigned int)’:
src/compiler/glsl/ir_constant_expression.cpp:77:56: error: ‘static_assert’ was not declared in this scope
"float and unsigned int size mismatch");
^
b3e3af0e374c5db0e6f74c3963d28b39c9fc286c is the first bad commit
commit b3e3af0e374c5db0e6f74c3963d28b39c9fc286c
Author: Eric Engestrom <eric.engestrom@intel.com>
Date: Tue Sep 24 16:58:31 2019 +0100
glsl: turn runtime asserts of compile-time value into compile-time asserts
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
:040000 040000 0ff9f0c6c8a2aadf7d7cf589d67a4697618d5685 fe7836d6a9924d8c4c8b161e82bf5a01e096f3cc M src
bisect run success
Edited by Vinson Lee