Skip to content

Commit

Permalink
[expr.prim.lambda.general] Add example for parsing ambiguity
Browse files Browse the repository at this point in the history
Fixes NB JP 021 (C++23 DIS).
  • Loading branch information
jensmaurer authored and tkoeppe committed Oct 8, 2023
1 parent 4005215 commit 812e64a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,11 @@
\begin{note}
Such ambiguous cases cannot have valid semantics
because the constraint expression would not have type \keyword{bool}.
\begin{example}
\begin{codeblock}
auto x = []<class T> requires T::operator int [[some_attribute]] (int) { }
\end{codeblock}
\end{example}
\end{note}

\pnum
Expand Down

0 comments on commit 812e64a

Please sign in to comment.