www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11314] New: inline ice with tuple assignment and if/else again

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

           Summary: inline ice with tuple assignment and if/else again
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: youxkei gmail.com


--- Comment #0 from Hisayuki Mima <youxkei gmail.com> 2013-10-21 22:33:43 JST
---
This bug may be related to the Issue 11223

-----
module bug;
struct Tuple(T...)
{
    T values;

    void opAssign(typeof(this) rhs)
    {
        if(0)
            values[] = rhs.values[];
        else
            assert(0);
    }
}

struct S{}

void main()
{
    Tuple!S t;
    t = Tuple!S(S.init);
}
-----
$ dmd -inline bug.d
dmd: glue.c:1281: virtual unsigned int Type::totym(): Assertion `0' failed.
-----

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


Hisayuki Mima <youxkei gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


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



--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-11-04 07:21:32 PST ---
Which version did have worked correctly with? I tested 2.063 to 2.056, but all
versions causes same ICE.

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


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
           Severity|regression                  |major


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-11-04 17:40:32 PST ---
https://github.com/D-Programming-Language/dmd/pull/2717

I think this is not a regression issue against past releases, so change the
importance to 'major'.

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