Bug 17976 – core.exception.AssertError@ddmd/dsymbolsem.d(1624)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-11-09T09:26:33Z
Last change time
2017-12-18T22:56:47Z
Assigned to
No Owner
Creator
Jonathan M Davis

Comments

Comment #0 by issues.dlang — 2017-11-09T09:26:33Z
I guess that this is technically an ICE, but it doesn't really cause problems. The compiler really shouldn't be failing an assertion though. This code: ---------------------- struct S { this(string a, string a) { } } void main() { } ---------------------- results in this error test.d(3): Error: constructor test.S.this parameter this.a is already defined core.exception.AssertError@ddmd/dsymbolsem.d(1624): Assertion failure ---------------- The error message is correct, but the AssertError that happens afterwards shouldn't be happening.
Comment #1 by razvan.nitu1305 — 2017-11-10T10:00:24Z
Comment #2 by github-bugzilla — 2017-11-13T07:41:08Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bfa0da8d413ed283868fcd103ee398e41a29deef Fix Issue 17976 - core.exception.AssertError@ddmd/dsymbolsem.d https://github.com/dlang/dmd/commit/03e806abaae49fe84de8fc0bdbe2ead80f58d038 Merge pull request #7297 from RazvanN7/Issue_17976 Fix Issue 17976 - core.exception.AssertError@ddmd/dsymbolsem.d(1624)
Comment #3 by github-bugzilla — 2017-12-18T22:56:47Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bfa0da8d413ed283868fcd103ee398e41a29deef Fix Issue 17976 - core.exception.AssertError@ddmd/dsymbolsem.d https://github.com/dlang/dmd/commit/03e806abaae49fe84de8fc0bdbe2ead80f58d038 Merge pull request #7297 from RazvanN7/Issue_17976