www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8735] New: Can't use alias this on template + ICE: Assertion failure: 't' on line 100 in file 'aliasthis.c'

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



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: -------
Sep 28 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8735


monarchdodra gmail.com changed:

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



Stumbled upon this, with (I think) a simple reduced case:

//----
struct S(alias Arg)
{
    alias Arg Val;
    alias Val this;
}
alias S!1 S1;
//----

Assertion failure: 't' on line 100 in file 'aliasthis.c'
abnormal program termination

The code is not legal (AFAIK), but ICE none the less.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 13 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8735


Zhenya Chapovsky <zheny list.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zheny list.ru



*** Issue 9709 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 13 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8735


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com



23:48:09 PDT ---

 Two bugs.
Please, one bug report per bugzilla issue. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 06 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8735




07:43:23 PDT ---


 Two bugs.
Please, one bug report per bugzilla issue.
Yes, but these are highly related to each other. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 07 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8735




12:48:09 PDT ---



 Two bugs.
Please, one bug report per bugzilla issue.
Yes, but these are highly related to each other.
Yes, you can link one bugzilla report to another. Things that require DIFFERENT fixes need to be in SEPARATE issues. Otherwise, it's just miserable and confusing from numerous standpoints. It's not like we're going to overflow the bugzilla issue number counter, nor are we getting billed per issue number. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 07 2013