Thread overview
[Issue 15210] [REG2.064][ICE] (glue.c at 1489) with tuples and AAs
Oct 16, 2015
Vladimir Panteleev
Oct 20, 2015
Kenji Hara
Oct 20, 2015
Kenji Hara
Oct 20, 2015
Kenji Hara
Oct 20, 2015
Kenji Hara
Oct 21, 2015
Kenji Hara
October 16, 2015
https://issues.dlang.org/show_bug.cgi?id=15210

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com
            Summary|[ICE] (glue.c at 1489) with |[REG2.064][ICE] (glue.c at
                   |tuples and AAs              |1489) with tuples and AAs

--- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> ---
This seems to be a regression.

Introduced in https://github.com/D-Programming-Language/dmd/pull/2653

--
October 20, 2015
https://issues.dlang.org/show_bug.cgi?id=15210

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |regression

--
October 20, 2015
https://issues.dlang.org/show_bug.cgi?id=15210

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
Reduced test case:

struct BigInt {}

alias AliasSeq(T...) = T;

template Tuple(Types)
{
    struct Tuple
    {
        Types expand;
        alias field = expand;
    }
}

void main()
{
    alias Foo = Tuple!BigInt;
    Foo[BigInt] cache;

    auto x = Foo();

    BigInt[] arr;
    foreach (y; arr)
        cache[y] = x;
}

--
October 20, 2015
https://issues.dlang.org/show_bug.cgi?id=15210

--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> ---
(In reply to Kenji Hara from comment #2)
> Reduced test case:

Sorry I was wrong, correct version is:

struct BigInt {}

template Tuple(Types...)
{
    struct Tuple
    {
        Types field;

        void opAssign(R)(R rhs)
        {
            field = rhs.field;
        }
    }
}

void main()
{
    alias Foo = Tuple!BigInt;

    Foo[BigInt] cache;

    auto x = Foo();

    cache[BigInt()] = x;
}

--
October 20, 2015
https://issues.dlang.org/show_bug.cgi?id=15210

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
           Hardware|x86_64                      |All
                 OS|Windows                     |All

--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/5209

--
October 21, 2015
https://issues.dlang.org/show_bug.cgi?id=15210

--- Comment #5 from Kenji Hara <k.hara.pg@gmail.com> ---
(In reply to Kenji Hara from comment #4)
> https://github.com/D-Programming-Language/dmd/pull/5209

Correction: https://github.com/D-Programming-Language/dmd/pull/5216

--
October 21, 2015
https://issues.dlang.org/show_bug.cgi?id=15210

--- Comment #6 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/34f10ecaea2a8a3d9dbb20d089bf63217e00ff92 fix Issue 15210 - [ICE] (glue.c at 1489) with tuples and AAs

https://github.com/D-Programming-Language/dmd/commit/0a72d643af818c26b6630b3d93b94b24ed21f2d7 Merge pull request #5216 from 9rnsr/fix15210

[REG2.064] Issue 15210 - [ICE] (glue.c at 1489) with tuples and AAs

--
October 21, 2015
https://issues.dlang.org/show_bug.cgi?id=15210

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
October 23, 2015
https://issues.dlang.org/show_bug.cgi?id=15210

--- Comment #7 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/34f10ecaea2a8a3d9dbb20d089bf63217e00ff92 fix Issue 15210 - [ICE] (glue.c at 1489) with tuples and AAs

https://github.com/D-Programming-Language/dmd/commit/0a72d643af818c26b6630b3d93b94b24ed21f2d7 Merge pull request #5216 from 9rnsr/fix15210

--