www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8262] New: [ICE] sequence alias this

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8262

           Summary: [ICE] sequence alias this
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: timon.gehr gmx.ch



template Seq(T...) { alias T Seq; }

struct S{
    int s;
    alias Seq!s _;
    alias _ this;
}

import std.stdio;
void main(){ writeln(S.init); }

Crashes DMD 2.059 with:

dmd: mtype.c:1279: Type* Type::aliasthisOf(): Assertion `d->type' failed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 18 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8262


Maksim Zholudev <maximzms gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maximzms gmail.com



PST ---
Crashes both DMD 2.061 and Git head with:
--------------------
dmd: aliasthis.c:100: virtual void AliasThis::semantic(Scope*): Assertion `t'
failed.
--------------------

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