Bug 23689 – ImportC: C tests in the testsuite are not valid C

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2023-02-12T14:39:16Z
Last change time
2023-12-15T02:14:09Z
Keywords
accepts-invalid, ImportC
Assigned to
No Owner
Creator
Iain Buclaw
Blocks
23718, 23690, 23691, 23692, 23693, 23694, 23695, 23696, 23697, 23698, 23699, 23700, 23701, 23702, 23711, 23712, 23713, 23714, 23715, 23716, 23717, 23719, 23720, 23721
See also
https://issues.dlang.org/show_bug.cgi?id=23690, https://issues.dlang.org/show_bug.cgi?id=23691, https://issues.dlang.org/show_bug.cgi?id=23692, https://issues.dlang.org/show_bug.cgi?id=23693, https://issues.dlang.org/show_bug.cgi?id=23694, https://issues.dlang.org/show_bug.cgi?id=23695, https://issues.dlang.org/show_bug.cgi?id=23696, https://issues.dlang.org/show_bug.cgi?id=23697, https://issues.dlang.org/show_bug.cgi?id=23698, https://issues.dlang.org/show_bug.cgi?id=23699, https://issues.dlang.org/show_bug.cgi?id=23700, https://issues.dlang.org/show_bug.cgi?id=23701, https://issues.dlang.org/show_bug.cgi?id=23702, https://issues.dlang.org/show_bug.cgi?id=23711, https://issues.dlang.org/show_bug.cgi?id=23712, https://issues.dlang.org/show_bug.cgi?id=23713, https://issues.dlang.org/show_bug.cgi?id=23714, https://issues.dlang.org/show_bug.cgi?id=23715, https://issues.dlang.org/show_bug.cgi?id=23716, https://issues.dlang.org/show_bug.cgi?id=23717, https://issues.dlang.org/show_bug.cgi?id=23718, https://issues.dlang.org/show_bug.cgi?id=23719, https://issues.dlang.org/show_bug.cgi?id=23720, https://issues.dlang.org/show_bug.cgi?id=23721

Comments

Comment #0 by ibuclaw — 2023-02-12T14:39:16Z
This is a meta issue for others. As per title, there seems to be no proper gauge as to whether a C program should genuinely be compilable, runnable, or not.
Comment #1 by bugzilla — 2023-06-01T07:19:41Z
Since every C compiler has extensions, and I can't remember a C header file yet that could resist using them, ImportC has to compile them, too. The ImportC C extensions are pretty much all either extensions used in C .h files, or ones that come from the use of D semantic routines. If ImportC was a strict C11 compiler, it would not be useful to our users.
Comment #2 by bugzilla — 2023-12-15T02:14:09Z
Only 23718 is left, so no need to keep this issue.