---- enum E {a = 1} struct OnlyResult { this(E) {} E[1] data; } void main() { auto o = OnlyResult(E.a); /* line 11 */ } ---- Compiles fine with 2.066.1 and older. With 2.067.0 and later: "test.d(11): Error: cannot implicitly convert expression (0) of type int to E[1]" Discovered by Nick Sabalausky in D.learn: http://forum.dlang.org/post/migjge$eat$1@digitalmars.com
Introduced in https://github.com/D-Programming-Language/dmd/pull/3885
Same problem with static array of void: ---- struct OnlyResult { this(int) {} void[1] data; } void main() { auto o = OnlyResult(0); } ----
https://github.com/D-Programming-Language/dmd/pull/4706
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3cde9f06d19ceb39efb0fcf0febd157b21e2c6b4 fix Issue 14556 - can't instantiate struct that has constructor and static array of enum https://github.com/D-Programming-Language/dmd/commit/920d18e560e9669e6400c5b29c7c40d78b562fdb Merge pull request #4706 from 9rnsr/fix14556 [REG2.067] Issue 14556 - can't instantiate struct that has constructor and static array of enum
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3cde9f06d19ceb39efb0fcf0febd157b21e2c6b4 fix Issue 14556 - can't instantiate struct that has constructor and static array of enum https://github.com/D-Programming-Language/dmd/commit/920d18e560e9669e6400c5b29c7c40d78b562fdb Merge pull request #4706 from 9rnsr/fix14556
*** Issue 14764 has been marked as a duplicate of this issue. ***