|
| 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