|
From: | John W. Eaton |
Subject: | Re: undefined compound chaining behavior |
Date: | Thu, 12 Jun 2014 11:59:05 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 |
On 06/12/2014 11:48 AM, Hossein Sajjadi wrote:
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
Unless I'm mistaken, there aren't any expressions like that in the C++ code in Octave. If I'm mistaken, please point out where there are expressions like that.
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |