atilaneves / dpp

Directly include C headers in D source code
Boost Software License 1.0
231 stars 31 forks source link

Compilation failure using DMD 2.102. #323

Closed veelo closed 1 year ago

veelo commented 1 year ago
dmd --version
DMD64 D Compiler v2.102.0-rc.1-dirty

dub build dpp -a=x86_64
             Building package dpp in C:\Users\bastiaan\AppData\Local\dub\packages\dpp-0.4.13\dpp\
    Starting Performing "debug" build using C:\D\dmd2\windows\bin64\dmd.exe for x86_64.
  Up-to-date libclang 0.2.12: target for configuration [library] is up to date.
  Up-to-date sumtype 0.7.1: target for configuration [library] is up to date.
    Building dpp 0.4.13: building configuration [executable]
C:\Users\bastiaan\AppData\Local\dub\packages\dpp-0.4.13\dpp\source\dpp\runtime\context.d(299,28): Error: scope variable `spelling` may not be copied into allocated memory
C:\Users\bastiaan\AppData\Local\dub\packages\dpp-0.4.13\dpp\source\dpp\runtime\context.d(335,32): Error: scope variable `original` may not be copied into allocated memory
Error C:\D\dmd2\windows\bin64\dmd.exe failed with exit code 1.

The last compiler that compiled without errors is 2.101.