Affected subclause: [expr.cond]
Change: A conditional expression with a throw expression as its second or third
operand keeps the type and value category of the other operand
. Effect on original feature: Valid C++ 2011 code that relies on the conversions may behave differently
in this revision of C++:
struct S {
int x = 1;
void mf() { x = 2; }
};
int f(bool cond) {
S s;
(cond ? s : throw 0).mf();
return s.x;
}