Thread overview
[Issue 20276] DMD v2.088.0 Compile with dub fails due to an illegal instruction
Oct 07, 2019
Vladimir Panteleev
Oct 08, 2019
Doug Clayton
Oct 08, 2019
Doug Clayton
Oct 08, 2019
Vladimir Panteleev
Feb 27, 2020
Rainer Schuetze
October 07, 2019
https://issues.dlang.org/show_bug.cgi?id=20276

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang-bugzilla@thecybershad
                   |                            |ow.net

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
Please post a command line which reproduces the problem for you with the files you attached.

With DMD 2.088.0 under Wine,

dmd -g -debug -lib *.d

succeeds.

--
October 08, 2019
https://issues.dlang.org/show_bug.cgi?id=20276

Doug Clayton <dougclayton4231@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1763|0                           |1
        is obsolete|                            |

--- Comment #2 from Doug Clayton <dougclayton4231@hotmail.com> ---
Created attachment 1764
  --> https://issues.dlang.org/attachment.cgi?id=1764&action=edit
Sample Project with DirectX code

Full sample project with directx code in proper file structure.

--
October 08, 2019
https://issues.dlang.org/show_bug.cgi?id=20276

--- Comment #3 from Doug Clayton <dougclayton4231@hotmail.com> ---
Hi Vladimir,

I just uploaded a sample project that 100% repros the compiler error for me. I ran 'dub build' on the project to get the compiler error. I'm not sure of the exact command line output that 'dub build' produces.

Thanks,
Doug

--
October 08, 2019
https://issues.dlang.org/show_bug.cgi?id=20276

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #1764|0                           |1
        is obsolete|                            |

--- Comment #4 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
Created attachment 1765
  --> https://issues.dlang.org/attachment.cgi?id=1765&action=edit
Reduced

Reproducible with attached file and command:
dmd.exe -m64 -g d3d11sdklayers.d

Looks like some problem with debug information and very large enums.

Declaring each enum member as its own enum (manifest) constant may be a
workaround.

--
February 27, 2020
https://issues.dlang.org/show_bug.cgi?id=20276

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |r.sagitario@gmx.de
         Resolution|---                         |FIXED

--- Comment #5 from Rainer Schuetze <r.sagitario@gmx.de> ---
fixed by https://github.com/dlang/dmd/pull/10733

--