[Issue 17976] New: core.exception.AssertError at ddmd/dsymbolsem.d(1624)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 9 09:26:33 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17976
Issue ID: 17976
Summary: core.exception.AssertError at ddmd/dsymbolsem.d(1624)
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: issues.dlang at jmdavisProg.com
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 at ddmd/dsymbolsem.d(1624): Assertion failure
----------------
The error message is correct, but the AssertError that happens afterwards
shouldn't be happening.
--
More information about the Digitalmars-d-bugs
mailing list