This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/26994] Scalar TRANSFER - error: invalid operand to unary operator



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]