octave-maintainers
[Top][All Lists]
Advanced

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

Re: undefined compound chaining behavior


From: Hossein Sajjadi
Subject: Re: undefined compound chaining behavior
Date: Thu, 12 Jun 2014 19:18:36 +0330

>
> This discussion is moot, since the C++ compiler is never evaluating
> such an expression in our C++ sources, or we would have seen such a
> warning by now. If you can compile Octave and show us a warning such
> as the one clang produces,
>
>     warning: unsequenced modification and access to 'x'
>
> then we do have UB.
>
> - Jordi G. H.
>
>
>
I talk about Standard and do not target any compiler.
In c++11 the expression i=++i+1 is well defined but gcc 4.9 throws
warning and a+=a+=4 is undefined but gcc throws no warning



reply via email to

[Prev in Thread] Current Thread [Next in Thread]