[Issue 20212] New: invalid debug info with enum type in library

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 13 17:38:12 UTC 2019


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

          Issue ID: 20212
           Summary: invalid debug info with enum type in library
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: r.sagitario at gmx.de

On git master, consider three modules:

///////////////////////////////////
module system;

enum Endian
{
        bigEndian,   /// Big endian byte order
        littleEndian /// Little endian byte order
}

/// The endianness that the program was compiled for.
Endian endian = Endian.littleEndian;

///////////////////////////////////
module registry;
import system;

void _RVT_from_Endian(Endian endian) {}

///////////////////////////////////
module main;
import system, registry;

void main()
{
        _RVT_from_Endian(Endian.littleEndian);
}

///////////////////////////////////

Build a library with

   dmd -lib -ofreg.lib -g -m64 system.d registry.d

and link with main:

   dmd main.d -m64 -g reg.lib

reg.lib(registry_2_61c.obj) : fatal error LNK1103: debugging information
corrupt; recompile module

--


More information about the Digitalmars-d-bugs mailing list