This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26994] Scalar TRANSFER - error: invalid operand to unary operator
- From: "paulthomas2 at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Apr 2006 00:56:57 -0000
- Subject: [Bug tree-optimization/26994] Scalar TRANSFER - error: invalid operand to unary operator
- References: <bug-26994-10374@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from paulthomas2 at wanadoo dot fr 2006-04-03 00:56 -------
Subject: Re: Scalar TRANSFER - error: invalid
operand to unary operator
pinskia at gcc dot gnu dot org wrote:
>------- Comment #4 from pinskia at gcc dot gnu dot org 2006-04-02 22:43 -------
>A work around is to do:
>
> integer :: tmp
>.....
> tmp = 1
> chr = IACHAR(TRANSFER(tmp,"a"))
>
>
>
>
Yes, indeed. I eventually stumbled across that after seeing the comment
in is_gimple_val.
Thanks
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26994