2 ms·
Is that valid C code? Is a ternary on an L-value an L-value? I'm not sure it is - regardless of bitfields or not? https://godbolt.org/z/aP8v5xKaz https://godbo
by chrisseaton 5y ago
Is that valid C code? Is a ternary on an L-value an L-value? I'm not sure it is - regardless of bitfields or not?
https://godbolt.org/z/aP8v5xKaz https://godbolt.org/z/aP8v5xKaz
- jcranmer 5y agoI mentioned in the note that it's not legal C, since ternaries must yield rvalues in C. It is legal C++, however, since there ternaries may be lvalues.
- chrisseaton 5y agoI feel like you added that after I replied.