[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
- Re: undefined compound chaining behavior, (continued)
- Re: undefined compound chaining behavior, Mike Miller, 2014/06/10
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/10
- Re: undefined compound chaining behavior, Jordi Gutiérrez Hermoso, 2014/06/10
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/11
- Re: undefined compound chaining behavior, Jordi Gutiérrez Hermoso, 2014/06/12
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/12
- Re: undefined compound chaining behavior, Jordi Gutiérrez Hermoso, 2014/06/12
- Re: undefined compound chaining behavior,
Hossein Sajjadi <=
- Re: undefined compound chaining behavior, John W. Eaton, 2014/06/12
- Re: undefined compound chaining behavior, Richard Crozier, 2014/06/12
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/12
- Re: undefined compound chaining behavior, Jordi Gutiérrez Hermoso, 2014/06/12
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/12
- Re: undefined compound chaining behavior, Jordi Gutiérrez Hermoso, 2014/06/12
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/13
- Re: undefined compound chaining behavior, Richard Crozier, 2014/06/13
- Re: undefined compound chaining behavior, Hossein Sajjadi, 2014/06/13
- Re: undefined compound chaining behavior, Richard Crozier, 2014/06/13