[Issue 2253] New: Assertion failure: 'global.errors' on line 3820 in file 'template.c'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 29 17:42:49 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2253
Summary: Assertion failure: 'global.errors' on line 3820 in file
'template.c'
Product: D
Version: 2.017
Platform: PC
OS/Version: Windows
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: pelekhay at gmail.com
folowing code crashes dmd
template ArgTypes( F )
{
U argTypes(R, U...)(R delegate (U));
F func();
alias typeof(argTypes(func())) ArgTypes;
}
struct S
{
ArgTypes!(typeof(opCall))[0] f_arg;
static S opCall(int a_arg)
{
typeof(return) result;
result.f_arg = a_arg;
return result;
}
}
--
More information about the Digitalmars-d-bugs
mailing list