(expression) == expression

Leopold Palomo Avellaneda lepalom@wol.es
Mon Feb 6 15:49:00 GMT 2006


Hi,

A Dilluns 06 Febrer 2006 16:26, Patrick Serru va escriure:
>       Hello,
>
>       Using gcc version 4.0.2 20050901 (prerelease) (SUSE Linux). the
> execution of the following code gives two different values to x variable:
> x=(*(gSymbo_SQCST_Ptr)[*iPtr]);
> x=(*gSymbo_SQCST_Ptr)[*iPtr];

I think that you are doing a cast of two different things so you will have 
different values, but maybe I'm wrong. For my experience this kind of errors 
normally are a fault of the programmer, not gcc.

> Could it be the "prerelease" component of that version that could be
> responsale :-))

No...

Regards,

Leo
-- 
Linux User 152692 
Catalonia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20060206/a4603a58/attachment-0001.sig>


More information about the Gcc-help mailing list