www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22235] New: `core.demangle` does not support `noreturn`

https://issues.dlang.org/show_bug.cgi?id=22235

          Issue ID: 22235
           Summary: `core.demangle` does not support `noreturn`
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: pro.mathias.lang gmail.com

```
% 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.

--
Aug 23