Skip to content

Commit 6fe1207

Browse files
burblebeetkoeppe
authored andcommitted
CWG2461 Diagnosing non-bool type constraints
1 parent 472078f commit 6fe1207

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
@@ -4532,9 +4532,10 @@
45324532
or a substatement of a constexpr if statement\iref{stmt.if} within a template
45334533
and the template is not instantiated, or
45344534
\item
4535-
no substitution of template arguments
4536-
into a \grammarterm{type-constraint} or \grammarterm{requires-clause}
4537-
would result in a valid expression, or
4535+
any \grammarterm{constraint-expression} in the program, introduced or otherwise,
4536+
has (in its normal form) an atomic constraint $A$ where
4537+
no satisfaction check of $A$ could be well-formed and
4538+
no satisfaction check of $A$ is performed, or
45384539
\item
45394540
every valid specialization of a variadic template requires an empty template
45404541
parameter pack, or

0 commit comments

Comments
 (0)