Skip to content

Commit 71cbce1

Browse files
[dcl.contract.func] Fix placeholder and IFNDR comment (#9156)
1 parent 434d2f8 commit 71cbce1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/declarations.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4707,7 +4707,7 @@
47074707
renaming of the parameters of \placeholder{f},
47084708
\item
47094709
renaming of template parameters of
4710-
a template enclosing \placeholder{}, and
4710+
a template enclosing \placeholder{f}, and
47114711
\item
47124712
renaming of the result binding\iref{dcl.contract.res}, if any,
47134713
\end{itemize}
@@ -4738,7 +4738,7 @@
47384738

47394739
void f() pre (b1) pre ([]{ return b2; }());
47404740
void f(); // OK, \grammarterm{function-contract-specifier}s omitted
4741-
void f() pre (b1) pre ([]{ return b2; }()); // error: closures have different types.
4741+
void f() pre (b1) pre ([]{ return b2; }()); // ill-formed, no diagnostic required: closures have different types
47424742
void f() pre (b1); // error: \grammarterm{function-contract-specifier}s only partially repeated
47434743

47444744
int g() post(r : b1);

0 commit comments

Comments
 (0)