LDC 1.30.0-beta1

kinke noone at nowhere.com
Mon May 23 11:34:07 UTC 2022


On Sunday, 22 May 2022 at 12:58:49 UTC, Test123 wrote:
> There is a bug with this simple code.
>
> ```d
> import ldc.attributes : assumeUsed;
> @nogc nothrow extern(C):
> export int test() @assumeUsed {
>         return 0;
> }
> ```
>
> [...]
>
> If I enable lto there is no name for Export Table:

This works fine on my box, targeting Win64:

```
> ldc2 -shared -O current.d -flto=full
> dumpbin /exports current.dll
Microsoft (R) COFF/PE Dumper Version 14.29.30133.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file current.dll

File Type: DLL

   Section contains the following exports for current.dll

     00000000 characteristics
            0 time date stamp
         0.00 version
            0 ordinal base
            3 number of functions
            2 number of names

     ordinal hint RVA      name

           1    0 00003038 _D7current12__ModuleInfoZ
           2    1 000010A0 test
```


More information about the Digitalmars-d-announce mailing list