dmd crashes when compiling the following program: --- static immutable int a = 8; enum Bar {aa = a} void foo(Bar bar){} void main(){} --- only with the switches: -debug -gc the crash doesn't happend when a is declared as - static const int a = 8; - static immutable short a = 8; - static immutable uint a = 8; more generally it happens only if a is (optionnaly static) immutable int dmd version: 2.066.1 os: windows 7 32 bit
This also crashes with when compiling only with "-g" this seems to be a general issue debug symbol generation on windows.
https://github.com/D-Programming-Language/dmd/pull/5611
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5601d515db803b086ac497c8f63ba104c81e082b fix issue 13975: add missing masking of Tty https://github.com/D-Programming-Language/dmd/commit/af845b79526f6b2ad95fcdfbdd80d2b349e145f6 Merge pull request #5611 from rainers/fix_13975 fix issue 13975 - ICE: dmd crash if -gc and enum member is immutable int
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/5601d515db803b086ac497c8f63ba104c81e082b fix issue 13975: add missing masking of Tty https://github.com/dlang/dmd/commit/af845b79526f6b2ad95fcdfbdd80d2b349e145f6 Merge pull request #5611 from rainers/fix_13975