Skip to content

Commit ca3aeb3

Browse files
author
github-actions
committed
Automatic update from GitHub Actions workflow
1 parent 7ccf0d6 commit ca3aeb3

22 files changed

+529
-44
lines changed

issue4247.html

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Issue 4247: Header &lt;stdbit.h&gt; is not yet freestanding</title>
6+
<meta property="og:title" content="Issue 4247: Header &lt;stdbit.h&gt; is not yet freestanding">
7+
<meta property="og:description" content="C++ library issue. Status: New">
8+
<meta property="og:url" content="https://cplusplus.github.io/LWG/issue4247.html">
9+
<meta property="og:type" content="website">
10+
<meta property="og:image" content="http://cplusplus.github.io/LWG/images/cpp_logo.png">
11+
<meta property="og:image:alt" content="C++ logo">
12+
<style>
13+
p {text-align:justify}
14+
li {text-align:justify}
15+
pre code.backtick::before { content: "`" }
16+
pre code.backtick::after { content: "`" }
17+
blockquote.note
18+
{
19+
background-color:#E0E0E0;
20+
padding-left: 15px;
21+
padding-right: 15px;
22+
padding-top: 1px;
23+
padding-bottom: 1px;
24+
}
25+
ins {background-color:#A0FFA0}
26+
del {background-color:#FFA0A0}
27+
table.issues-index { border: 1px solid; border-collapse: collapse; }
28+
table.issues-index th { text-align: center; padding: 4px; border: 1px solid; }
29+
table.issues-index td { padding: 4px; border: 1px solid; }
30+
table.issues-index td:nth-child(1) { text-align: right; }
31+
table.issues-index td:nth-child(2) { text-align: left; }
32+
table.issues-index td:nth-child(3) { text-align: left; }
33+
table.issues-index td:nth-child(4) { text-align: left; }
34+
table.issues-index td:nth-child(5) { text-align: center; }
35+
table.issues-index td:nth-child(6) { text-align: center; }
36+
table.issues-index td:nth-child(7) { text-align: left; }
37+
table.issues-index td:nth-child(5) span.no-pr { color: red; }
38+
@media (prefers-color-scheme: dark) {
39+
html {
40+
color: #ddd;
41+
background-color: black;
42+
}
43+
ins {
44+
background-color: #225522
45+
}
46+
del {
47+
background-color: #662222
48+
}
49+
a {
50+
color: #6af
51+
}
52+
a:visited {
53+
color: #6af
54+
}
55+
blockquote.note
56+
{
57+
background-color: rgba(255, 255, 255, .10)
58+
}
59+
}
60+
</style>
61+
</head>
62+
<body>
63+
<hr>
64+
<p><em>This page is a snapshot from the LWG issues list, see the <a href="lwg-active.html">Library Active Issues List</a> for more information and the meaning of <a href="lwg-active.html#New">New</a> status.</em></p>
65+
<h3 id="4247"><a href="lwg-active.html#4247">4247</a>. Header <code>&lt;stdbit.h&gt;</code> is not yet freestanding</h3>
66+
<p><b>Section:</b> 22.12 <a href="https://wg21.link/stdbit.h.syn">[stdbit.h.syn]</a> <b>Status:</b> <a href="lwg-active.html#New">New</a>
67+
<b>Submitter:</b> Jiang An <b>Opened:</b> 2025-04-24 <b>Last modified:</b> 2025-04-27</p>
68+
<p><b>Priority: </b>Not Prioritized
69+
</p>
70+
<p><b>View all issues with</b> <a href="lwg-status.html#New">New</a> status.</p>
71+
<p><b>Discussion:</b></p>
72+
<p>
73+
Per C23/WG14 <a href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf#page=22">N3220</a> 4 p7, <code>&lt;stdbit.h&gt;</code>
74+
is freestanding in C23, but C++ hasn't required it for a freestanding implementation.
75+
LWG <a href="lwg-active.html#4049" title="C &lt;foo.h&gt; headers not in freestanding (Status: New)">4049</a><sup><a href="https://cplusplus.github.io/LWG/issue4049" title="Latest snapshot">(i)</a></sup> is related but doesn't cover this, because there's no <code>&lt;cstdbit&gt;</code> standard header.
76+
</p>
77+
78+
79+
<p id="res-4247"><b>Proposed resolution:</b></p>
80+
<p>
81+
This wording is relative to <a href="https://wg21.link/N5008">N5008</a>.
82+
</p>
83+
84+
<ol>
85+
86+
<li><p>Modify Table 27 [tab:headers.cpp.fs] as indicated:</p>
87+
88+
<blockquote>
89+
<table border="1">
90+
<caption>Table 27: C++ headers for freestanding implementations [tab:headers.cpp.fs]</caption>
91+
<tr align="center">
92+
<th></th>
93+
<th>Subclause</th>
94+
<th>Header</th>
95+
</tr>
96+
97+
<tr>
98+
<td colspan="3" align="center">
99+
<code>[&hellip;]</code>
100+
</td>
101+
</tr>
102+
103+
<tr>
104+
<td>
105+
22.11 <a href="https://wg21.link/bit">[bit]</a>
106+
</td>
107+
<td>
108+
Bit manipulation
109+
</td>
110+
<td>
111+
<code>&lt;bit&gt;</code>
112+
</td>
113+
</tr>
114+
115+
<tr>
116+
<td>
117+
<ins>22.12 <a href="https://wg21.link/stdbit.h.syn">[stdbit.h.syn]</a></ins>
118+
</td>
119+
<td>
120+
<ins>C-compatible bit manipulation</ins>
121+
</td>
122+
<td>
123+
<ins><code>&lt;stdbit.h&gt;</code></ins>
124+
</td>
125+
</tr>
126+
127+
<tr>
128+
<td>
129+
23.3.3 <a href="https://wg21.link/array">[array]</a>
130+
</td>
131+
<td>
132+
Class template <code class='backtick'>array</code>
133+
</td>
134+
<td>
135+
<code>&lt;array&gt;</code>
136+
</td>
137+
</tr>
138+
139+
<tr>
140+
<td colspan="3" align="center">
141+
<code>[&hellip;]</code>
142+
</td>
143+
</tr>
144+
145+
</table>
146+
147+
</blockquote>
148+
149+
</li>
150+
151+
<li><p>Modify 22.12 <a href="https://wg21.link/stdbit.h.syn">[stdbit.h.syn]</a>, header <code>&lt;stdbit.h&gt;</code> synopsis, as indicated:</p>
152+
153+
<blockquote>
154+
<pre>
155+
<ins>// all freestanding</ins>
156+
#define __STDC_VERSION_STDBIT_H__ 202311L
157+
158+
#define __STDC_ENDIAN_BIG__ <i>see below</i>
159+
#define __STDC_ENDIAN_LITTLE__ <i>see below</i>
160+
#define __STDC_ENDIAN_NATIVE__ <i>see below</i>
161+
162+
[&hellip;]
163+
</pre>
164+
</blockquote>
165+
166+
</li>
167+
168+
</ol>
169+
170+
171+
172+
173+
174+
</body>
175+
</html>

0 commit comments

Comments
 (0)