[Issue 8735] 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
Wed Nov 13 23:02:08 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=8735



--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> 2013-11-13 23:01:59 PST ---
(In reply to comment #0)
> 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

This is not a bug. AliasThisDeclaration only accepts an "Identifier" as the
forwarding target.

http://dlang.org/declaration
AliasThisDeclaration:
    alias Identifier this

So it is invalid bug, or may be filed as an enhancement separately.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list