Bug 20763 – checkaction=context does not format pointers

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-04-23T13:19:28Z
Last change time
2020-04-24T09:37:00Z
Keywords
pull
Assigned to
No Owner
Creator
moonlightsentinel

Comments

Comment #0 by moonlightsentinel — 2020-04-23T13:19:28Z
Compiling & running this program ======================= void main() { int* i; assert(i != i); } ======================= with -checkaction=context yields `const(int)* == const(int)*`
Comment #1 by dlang-bot — 2020-04-23T13:54:25Z
@MoonlightSentinel created dlang/druntime pull request #3061 "Fix Issue 20763 - checkaction=context does not format pointers" fixing this issue: - Fix Issue 20763 - checkaction=context does not format pointers This adds hexadecimal printing for pointers. Note that it still prefers toString for struct pointers if possible (because toString will probably be more useful than raw pointer values). https://github.com/dlang/druntime/pull/3061
Comment #2 by dlang-bot — 2020-04-24T09:37:00Z
dlang/druntime pull request #3061 "Fix Issue 20763 - checkaction=context does not format pointers" was merged into master: - fb5035a657d2f226d8ecdef611260f5132a14edf by MoonlightSentinel: Fix Issue 20763 - checkaction=context does not format pointers This adds hexadecimal printing for pointers. Note that it still prefers toString for struct pointers if possible (because toString will probably be more useful than raw pointer values). https://github.com/dlang/druntime/pull/3061