Skip to content

Commit e902ec5

Browse files
committed
CWG2865 Regression on result of conditional operator
1 parent 5cf201a commit e902ec5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/expressions.tex

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7056,13 +7056,18 @@
70567056
formed and at least one of the operands has (possibly cv-qualified) class type:
70577057
\begin{itemize}
70587058
\item if \tcode{T1} and \tcode{T2} are the same class type
7059-
(ignoring cv-qualification) and
7060-
\tcode{T2} is at least as cv-qualified as \tcode{T1},
7061-
the target type is \tcode{T2},
7059+
(ignoring cv-qualification):
7060+
\begin{itemize}
7061+
\item
7062+
if \tcode{T2} is at least as cv-qualified as \tcode{T1},
7063+
the target type is \tcode{T2},
7064+
\item
7065+
otherwise, no conversion sequence is formed for this operand;
7066+
\end{itemize}
70627067

70637068
\item otherwise, if \tcode{T2} is a base class of \tcode{T1},
70647069
the target type is \cvqual{cv1} \tcode{T2}, where \cvqual{cv1}
7065-
denotes the cv-qualifiers of \tcode{T1},
7070+
denotes the cv-qualifiers of \tcode{T1};
70667071

70677072
\item otherwise, the target type is the type that \tcode{E2} would have
70687073
after applying the

0 commit comments

Comments
 (0)