TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

GCC 15.1

280 点作者 jrepinc16 天前

6 条评论

Calavar16 天前
&gt; {0} initializer in C or C++ for unions no longer guarantees clearing of the whole union (except for static storage duration initialization), it just initializes the first union member to zero. If initialization of the whole union including padding bits is desirable, use {} (valid in C23 or C++) or use -fzero-init-padding-bits=unions option to restore old GCC behavior.<p>This is going to silently break so much existing code, especially union based type punning in C code. {0} used to guarantee full zeroing and {} did not, and step by step we&#x27;ve flipped the situation to the reverse. The only sensible thing, in terms of not breaking old code, would be to have <i>both</i> {0} and {} zero initialize the whole union.<p>I&#x27;m sure this change was discussed in depth on the mailing list, but it&#x27;s absolutely mind boggling to me
评论 #43798312 未加载
评论 #43793166 未加载
评论 #43793121 未加载
评论 #43794045 未加载
评论 #43800932 未加载
评论 #43798826 未加载
评论 #43794558 未加载
评论 #43796460 未加载
评论 #43793080 未加载
评论 #43800234 未加载
评论 #43800975 未加载
评论 #43800132 未加载
评论 #43793150 未加载
评论 #43793036 未加载
omoikane16 天前
Really excited about #embed support:<p>&gt; C: #embed preprocessing directive support.<p>&gt; C++: P1967R14, #embed (PR119065)<p>See also:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32201951">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32201951</a> - Embed is in C23 (2022-07-23)
评论 #43799095 未加载
elvircrn16 天前
&quot;C++ Modules have been greatly improved.&quot;<p>It would be nice to know what these great improvements actually are.
评论 #43794293 未加载
评论 #43795633 未加载
评论 #43793861 未加载
pjmlp16 天前
Interesting to see some improvements being done to Modula-2 frontend as well.
codr716 天前
Finally, musttail, can&#x27;t wait to try that out.
fithisux16 天前
Any Hope for HaikuOs + Winlibs. GDC would be greatly appreciated.