Re: [HACKERS] Minor codegen silliness in ExecInterpExpr()

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [HACKERS] Minor codegen silliness in ExecInterpExpr()
Дата
Msg-id 20170929035657.gqq2ajphzjrlhxo6@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [HACKERS] Minor codegen silliness in ExecInterpExpr()  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Minor codegen silliness in ExecInterpExpr()  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 2017-09-28 20:01:37 -0400, Tom Lane wrote:
> I wondered how pervasive this behavior is.  AFAICS it is *not* required
> by the C standard; C99 does not say that the left operand of assignment
> must be evaluated first, in fact it says that the order of evaluation is
> unspecified.

FWIW, it's being specificied in C++17 ([1]), which seems to make it not
unlikely to end up in C as well.

> but it does suggest that this is worth fixing, and is not just an artifact
> of an old compiler version.

+1, I saw the same in a bleeding edge c++ version.

Greetings,

Andres Freund

[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0145r3.pdf


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: [HACKERS] A design for amcheck heapam verification
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] Minor codegen silliness in ExecInterpExpr()