← Back to index
|
Original Bugzilla link
Bug 23713 – compilable/testcstuff1.c:206:1: error: static assertion failed: sizeof(u'a') == 4
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2023-02-15T16:36:30Z
Last change time
2023-12-14T10:09:13Z
Keywords
accepts-invalid, ImportC, pull
Assigned to
No Owner
Creator
Iain Buclaw
Depends on
23689
See also
https://issues.dlang.org/show_bug.cgi?id=23689
Comments
Comment #0
by ibuclaw — 2023-02-15T16:36:30Z
When compiling the test with `gcc -std=c11 -fsyntax-only` compilable/testcstuff1.c:206:1: error: static assertion failed: "ok" 206 | _Static_assert(sizeof(u'a') == 4, "ok"); | ^~~~~~~~~~~~~~ Test case: ``` _Static_assert(sizeof(u'a') == 4, "ok"); ```
Comment #1
by dlang-bot — 2023-12-14T07:14:31Z
@WalterBright created dlang/dmd pull request #15903 "fix Issue 23713 - compilable/testcstuff1.c:206:1: error: static asser…" fixing this issue: - fix Issue 23713 - compilable/testcstuff1.c:206:1: error: static assertion failed: sizeof(u'a') == 4
https://github.com/dlang/dmd/pull/15903
Comment #2
by dlang-bot — 2023-12-14T10:09:13Z
dlang/dmd pull request #15903 "fix Issue 23713 - compilable/testcstuff1.c:206:1: error: static asser…" was merged into master: - 3d056359e93fd04bf0d45869af99715f4a5f0d58 by Walter Bright: fix Issue 23713 - compilable/testcstuff1.c:206:1: error: static assertion failed: sizeof(u'a') == 4
https://github.com/dlang/dmd/pull/15903