Skip to content

Commit 774c739

Browse files
tomaszkamjwakely
authored andcommitted
New issue to address US 97-203: Incorrect query for C language linkage
1 parent cf97c2f commit 774c739

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

xml/issue4433.xml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4433" status="New">
5+
<title>Incorrect query for C language linkage</title>
6+
<section>
7+
<sref ref="[meta.reflection.queries]"/>
8+
</section>
9+
<submitter>Tomasz Kamiński</submitter>
10+
<date>27 Oct 2025</date>
11+
<priority>99</priority>
12+
13+
<discussion>
14+
<b>Addresses US 97-203</b>
15+
<p>
16+
<sref ref="[meta.reflection.queries]"/>
17+
Language linkage is a property of functions, variables, and function types (<sref ref="[basic.link]"/>),
18+
not of names.
19+
</p>
20+
</discussion>
21+
22+
<resolution>
23+
<p>
24+
This wording is relative to <paper num="N5014"/>.
25+
</p>
26+
27+
<ol>
28+
29+
<li><p>Modify <sref ref="[meta.reflection.queries]"/> as indicated:</p>
30+
31+
<pre>
32+
consteval bool has_internal_linkage(info r);
33+
consteval bool has_module_linkage(info r);
34+
consteval bool has_external_linkage(info r);
35+
<del>consteval bool has_c_language_linkage(info r);</del>
36+
consteval bool has_linkage(info r);
37+
</pre>
38+
<blockquote>
39+
<p>-25- <i>Returns</i>: `true` if `r` represents a variable, function, type, template, or namespace
40+
whose name has internal linkage, module linkage, <del>C language linkage, </del>or any linkage,
41+
respectively (<sref ref="[basic.link]"/>). Otherwise, `false`.</p>
42+
</blockquote>
43+
44+
<pre>
45+
<ins>consteval bool has_c_language_linkage(info r);</ins>
46+
</pre>
47+
<blockquote>
48+
<p><ins>-??- <i>Returns</i>: `true` if `r` represents a variable, function, or function type with C language
49+
linkage, module linkage. Otherwise, `false`.</ins></p>
50+
</blockquote>
51+
52+
</li>
53+
</ol>
54+
55+
</resolution>
56+
57+
</issue>

0 commit comments

Comments
 (0)