Compilation error involving comparison and logical operator
Dibyendu Majumdar
mobile@majumdar.org.uk
Thu Jan 1 00:00:00 GMT 2015
On 26 June 2015 at 10:42, David Malcolm <dmalcolm@redhat.com> wrote:
> Note that unlike C, libgccjit has no implicit type-coercion: anywhere
> you want to treat int as bool or vice versa, or convert between float
> and int, you need to do it explicitly via a cast
> (gcc_jit_context_new_cast).
>
Couple of questions:
1. What is the type of a binary logical operator and what effect does
the result type in gcc_jit_context_new_binary_op() have?
2. What is the type of unary logical operator and what is the effect
of result type in gcc_jit_context_new_unary_op()?
The comparison operator does not take a result type so presumably it
is always boolean?
Regards
Dibyendu
More information about the Jit
mailing list