Hi all, I've just realized that what we has been done recently for gcc_jit_context_new_binary_op should be done also for the unary version. This patch checks at record time for the result type of gcc_jit_context_new_unary_op to be numeric type plus add a testcase for the new check. make check-jit runs clean Is it okay for trunk? Bests Andrea gcc/jit/ChangeLog 2019-07-18 Andrea Corallo * libgccjit.c (gcc_jit_context_new_unary_op): Check result_type to be a numeric type. * libgccjit.c (gcc_jit_context_new_binary_op): Fix nit in error message. gcc/testsuite/ChangeLog 2019-07-04 Andrea Corallo * jit.dg/test-error-gcc_jit_context_new_unary_op-bad-res-type.c: New testcase. * jit.dg/test-error-gcc_jit_context_new_binary_op-bad-res-type.c: Fix nit in error message.