http://d.puremagic.com/issues/show_bug.cgi?id=8735
Summary: Can't use alias this on template + ICE: Assertion
failure: 't' on line 100 in file 'aliasthis.c'
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 2012-09-28
20:34:23 PDT ---
Two bugs. First bug:
struct Foo
{
int test(string op)() { return 0; }
alias test!"*" this;
}
test.d(15): Error: no identifier for declarator test!("*")
test.d(15): Error: semicolon expected to close alias declaration
Second bug:
struct Foo
{
int test(string op)() { return 0; }
alias test!"*" getVar;
alias getVar this;
}
Assertion failure: 't' on line 100 in file 'aliasthis.c'
I think both should work because this works ok:
struct Foo
{
int test(string op)() { return 0; }
auto getVar() { return test!"*"(); }
alias getVar this;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------