shift operator to the class complex?
>
> Bob
> On 8/21/2018 12:16 PM, Zhiguo Ge via cfe-users wrote:
> > Hi, All
> >
> > I want IR in Clang to such as SHIFT can support complex number.
> > I tried to write the following code:
> >complex data1;
> >
Hi, All
I want IR in Clang to such as SHIFT can support complex number.
I tried to write the following code:
complex data1;
complex data2 = data1 >> 4;
The Clang compiler said invalid operands in binary instructions.
I guess Clang do the data type check and report the error.
Can anyone help