Bug 9141 – (D1 only) Incorrect "more initializers than fields" error

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2012-12-10T23:17:00Z
Last change time
2012-12-20T00:16:52Z
Keywords
rejects-valid
Assigned to
nobody
Creator
verylonglogin.reg
Blocks
9188

Comments

Comment #0 by verylonglogin.reg — 2012-12-10T23:17:41Z
--- struct S { int i; const s = S(0); // Error: more initializers than fields of S } ---
Comment #1 by github-bugzilla — 2012-12-13T13:03:52Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5698e335af11af8b3ec589b45dddbc7742e1f587 fix Issue 9141 - (D1 only) Incorrect 'more initializers than fields' error