Re: gcc not warning on all occurences of operations with undefined results?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Ladislav!

On Tuesday 15 November 2005 21:33, Ladislav Mecir wrote:
> >But why doesn't gcc warn about this code
> >
> >  s.a = s.a++;
> >  p->a = p->a++;
>
> because in both these cases the result *is* defined

I do not understand, why are those operations defined, but

i = i++;

is not? I fail to see the relevant difference in these assigments.

Thanks for your help,

Cheers
Daniel

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux