[Issue 1784] New: DMD 1.025 asserts tuples mixed with defaults
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 11 19:44:32 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1784
Summary: DMD 1.025 asserts tuples mixed with defaults
Product: D
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: WinstonEwert at gmail.com
Code:
template A(tuple ..., bool first = true)
{
}
A!() a;
Result:
dmd: template.c:2474: virtual MATCH TemplateTupleParameter::matchArg(Scope*,
Objects*, int, TemplateParameters*, Objects*, Declaration**): Assertion `i + 1
== dedtypes->dim' failed.
Aborted (core dumped)
I realized after stripping everything down that doing that is probably not
legal, but it probably shouldn't assert.
--
More information about the Digitalmars-d-bugs
mailing list