Bug 20001 – Error: a struct is not a valid initializer for a _error_

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-06-24T22:28:48Z
Last change time
2019-06-25T11:53:25Z
Keywords
pull
Assigned to
No Owner
Creator
elpenguino+D

Comments

Comment #0 by elpenguino+D — 2019-06-24T22:28:48Z
Very easy to reproduce: ``` X x = {}; ``` This gives us a useful "undefined identifier X" error and the useless error mentioned in the title. The second error should not be printed in this case.
Comment #1 by dlang-bot — 2019-06-25T11:09:01Z
@RazvanN7 created dlang/dmd pull request #10085 "Fix Issue 20001 - Error: a struct is not a valid initializer for a _error_" fixing this issue: - Fix Issue 20001 - Error: a struct is not a valid initializer for a _error_ https://github.com/dlang/dmd/pull/10085
Comment #2 by dlang-bot — 2019-06-25T11:53:25Z
dlang/dmd pull request #10085 "Fix Issue 20001 - Error: a struct is not a valid initializer for a _error_" was merged into master: - fac3e5e12ac4951078a37834c445da9ca9fc6a7c by RazvanN7: Fix Issue 20001 - Error: a struct is not a valid initializer for a _error_ https://github.com/dlang/dmd/pull/10085