Skip to content

Commit 048c7c6

Browse files
committed
CWG2461 Diagnosing non-bool type constraints
1 parent 7c7b2ce commit 048c7c6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/templates.tex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,9 +4533,10 @@
45334533
or a substatement of a constexpr if statement\iref{stmt.if} within a template
45344534
and the template is not instantiated, or
45354535
\item
4536-
no substitution of template arguments
4537-
into a \grammarterm{type-constraint} or \grammarterm{requires-clause}
4538-
would result in a valid expression, or
4536+
any \grammarterm{constraint-expression} in the program, introduced or otherwise,
4537+
has (in its normal form) an atomic constraint $A$ where
4538+
no satisfaction check of $A$ could be well-formed and
4539+
no satisfaction check of $A$ is performed, or
45394540
\item
45404541
every valid specialization of a variadic template requires an empty template
45414542
parameter pack, or

0 commit comments

Comments
 (0)