[Issue 8735] New: Can't use alias this on template + ICE: Assertion failure: 't' on line 100 in file 'aliasthis.c'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 28 20:33:53 PDT 2012
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: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list