Bug 23886 – ImportC preprocessor directive #ident not supported

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-05-05T08:10:50Z
Last change time
2023-05-08T08:09:17Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=23884

Comments

Comment #0 by bugzilla — 2023-05-05T08:10:50Z
https://gcc.gnu.org/onlinedocs/cpp/Other-Directives.html says: The ‘#ident’ directive takes one argument, a string constant. On some systems, that string constant is copied into a special segment of the object file. On other systems, the directive is ignored. The ‘#sccs’ directive is a synonym for ‘#ident’.
Comment #1 by bugzilla — 2023-05-05T08:12:17Z
Comment #2 by bugzilla — 2023-05-06T00:08:33Z
Don't need to support #sccs because cpp will convert it to #ident.
Comment #3 by dlang-bot — 2023-05-06T00:10:02Z
@WalterBright created dlang/dmd pull request #15190 "fix Issue 23886 - ImportC preprocessor directive #ident not supported" fixing this issue: - fix Issue 23886 - ImportC preprocessor directive #ident not supported https://github.com/dlang/dmd/pull/15190
Comment #4 by dlang-bot — 2023-05-08T08:09:17Z
dlang/dmd pull request #15190 "fix Issue 23886 - ImportC preprocessor directive #ident not supported" was merged into master: - 07fc6389e3ed1011d7a5ef6ea20caf3b9fa7e56f by Walter Bright: fix Issue 23886 - ImportC preprocessor directive #ident not supported https://github.com/dlang/dmd/pull/15190