We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b3f32a commit b1822f7Copy full SHA for b1822f7
source/expressions.tex
@@ -678,6 +678,20 @@
678
If the result is an erroneous value\iref{basic.indet} and
679
the bits in the value representation are not valid for the object's type,
680
the behavior is undefined.
681
+\begin{example}
682
+\begin{codeblock}
683
+int main() {
684
+ bool a;
685
+ bool b = a;
686
+}
687
+\end{codeblock}
688
+If the values of the bytes of the object representation of \tcode{a}
689
+are determined by the implementation so that the
690
+bits of the value representation of \tcode{a}
691
+correspond to \tcode{true} or \tcode{false},
692
+the lvalue-to-rvalue conversion during the initialization of \tcode{b}
693
+has erroneous behavior, and undefined behavior otherwise.
694
+\end{example}
695
\end{itemize}
696
697
\pnum
0 commit comments