Re: Suspicion of a compiler bug in clang: using ternary operator in ereport()
От
Tom Lane
Тема
Re: Suspicion of a compiler bug in clang: using ternary operator in ereport()
Дата
Msg-id
4904.1390943951@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Suspicion of a compiler bug in clang: using ternary operator in
ereport() Christian Kruse <christian@2ndQuadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Christian Kruse <christian@2ndQuadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Christian Kruse <christian@2ndQuadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary operator in ereport() Tom Lane <tgl@sss.pgh.pa.us>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Andres Freund <andres@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary operator in ereport() Tom Lane <tgl@sss.pgh.pa.us>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Christian Kruse <christian@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary operator in ereport() Tom Lane <tgl@sss.pgh.pa.us>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Christian Kruse <christian@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary operator in ereport() Tom Lane <tgl@sss.pgh.pa.us>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Christian Kruse <christian@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Andres Freund <andres@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Christian Kruse <christian@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary operator in ereport() Tom Lane <tgl@sss.pgh.pa.us>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Christian Kruse <christian@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Christian Kruse <christian@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary operator in ereport() Tom Lane <tgl@sss.pgh.pa.us>
Re: Suspicion of a compiler bug in clang: using ternary operator in ereport() Jason Petersen <jason@citusdata.com>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Andres Freund <andres@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Stephen Frost <sfrost@snowman.net>
Re: Suspicion of a compiler bug in clang: using ternary
operator in ereport() Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Suspicion of a compiler bug in clang: using ternary operator in ereport() Tom Lane <tgl@sss.pgh.pa.us>
Christian Kruse writes: > According to http://llvm.org/bugs/show_bug.cgi?id=18644#c5 this is not > a compiler bug but a difference between gcc and clang. Clang seems to > use a left-to-right order of evaluation while gcc uses a right-to-left > order of evaluation. So if errmsg changes errno this would lead to > errno == ENOMEM evaluated to false. Oh! Yeah, that is our own bug then. > Should we work on this issue? Absolutely. Probably best to save errno into a local just before the ereport. regards, tom lane
В списке pgsql-hackers по дате отправления
От: Christian Kruse
Дата:
От: Alvaro Herrera
Дата: