Skip to content

Commit 7c99fc8

Browse files
committed
New issue from Jiang An: "Ill-formed, no diagnostic required on runtime behavior"
1 parent 3622070 commit 7c99fc8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

xml/issue4185.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4185" status="New">
5+
<title>Ill-formed, no diagnostic required on runtime behavior</title>
6+
<section><sref ref="[linalg.helpers]"/><sref ref="[concept.swappable]"/><sref ref="[iterator.cust.swap]"/></section>
7+
<submitter>Jiang An</submitter>
8+
<date>18 Dec 2024</date>
9+
<priority>99</priority>
10+
11+
<discussion>
12+
<p>
13+
Several exposition-only function objects in <sref ref="[linalg.helpers]"/> are specified with strange
14+
wording &mdash; "If the function selected by overload resolution does not return [&hellip;], the program
15+
is ill-formed, no diagnostic required;". These conditions don't seem to be static properties because what
16+
the selected function returns can be completely dependent on the runtime environment and input.
17+
<p/>
18+
Likewise, <sref ref="[concept.swappable]"/> and <sref ref="[iterator.cust.swap]"/> also contain such weird
19+
usage. Presumably we should say the behavior is undefined in these cases.
20+
</p>
21+
</discussion>
22+
23+
<resolution>
24+
</resolution>
25+
26+
</issue>

0 commit comments

Comments
 (0)