Skip to content

Commit 3ca9529

Browse files
burblebeetkoeppe
authored andcommitted
CWG2865 Regression on result of conditional operator
1 parent 6230b30 commit 3ca9529

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
@@ -7058,13 +7058,18 @@
70587058
formed and at least one of the operands has (possibly cv-qualified) class type:
70597059
\begin{itemize}
70607060
\item if \tcode{T1} and \tcode{T2} are the same class type
7061-
(ignoring cv-qualification) and
7062-
\tcode{T2} is at least as cv-qualified as \tcode{T1},
7063-
the target type is \tcode{T2},
7061+
(ignoring cv-qualification):
7062+
\begin{itemize}
7063+
\item
7064+
if \tcode{T2} is at least as cv-qualified as \tcode{T1},
7065+
the target type is \tcode{T2},
7066+
\item
7067+
otherwise, no conversion sequence is formed for this operand;
7068+
\end{itemize}
70647069

70657070
\item otherwise, if \tcode{T2} is a base class of \tcode{T1},
70667071
the target type is \cvqual{cv1} \tcode{T2}, where \cvqual{cv1}
7067-
denotes the cv-qualifiers of \tcode{T1},
7072+
denotes the cv-qualifiers of \tcode{T1};
70687073

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

0 commit comments

Comments
 (0)