Bug 22235 – `core.demangle` does not support `noreturn`
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-08-24T02:51:59Z
Last change time
2021-11-08T15:54:13Z
Keywords
pull
Assigned to
No Owner
Creator
Mathias LANG
Comments
Comment #0 by pro.mathias.lang — 2021-08-24T02:51:59Z
```
% dmd --version
DMD64 D Compiler v2.097.2
Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved written by Walter Bright
% echo "import std.exception; void main () { enforce(false); } " | dmd -run -
object.Exception@__stdin.d(1): Enforcement failed
----------------
??:? _D3std9exception__T7bailOutHTC9ExceptionZQwFNaNfAyamMAxaZNn [0x10c5acd32]
??:? pure @safe bool std.exception.enforce!().enforce!(bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) [0x10c5acca8]
??:? _Dmain [0x10c5acc1b]
```
Notice the first frame is not demangled.
Comment #1 by dlang-bot — 2021-10-14T14:53:12Z
@MoonlightSentinel created dlang/druntime pull request #3588 "Fix 22235 - Support noreturn in core.demangle.demangle" fixing this issue:
- Fix 22235 - Support noreturn in core.demangle.demangle
Recognize `Nn` in `parseType` and handle the ambiguity regarding
attributes and `noreturn` as the first parameter (both use two
characters and start with `N`).
https://github.com/dlang/druntime/pull/3588
Comment #2 by dlang-bot — 2021-10-14T22:45:41Z
dlang/druntime pull request #3588 "Fix 22235 - Support noreturn in core.demangle.demangle" was merged into stable:
- 70cd84c399a0ec7eddcf32444da064245eac8df7 by MoonlightSentinel:
Fix 22235 - Support noreturn in core.demangle.demangle
Recognize `Nn` in `parseType` and handle the ambiguity regarding
attributes and `noreturn` as the first parameter (both use two
characters and start with `N`).
https://github.com/dlang/druntime/pull/3588
Comment #3 by dlang-bot — 2021-11-08T15:54:13Z
dlang/druntime pull request #3615 "Merge `stable` in `mater`" was merged into master:
- 3acc85a2c8316bb557074ce9e7292c7436de3688 by MoonlightSentinel:
Fix 22235 - Support noreturn in core.demangle.demangle
Recognize `Nn` in `parseType` and handle the ambiguity regarding
attributes and `noreturn` as the first parameter (both use two
characters and start with `N`).
https://github.com/dlang/druntime/pull/3615