Thread overview
[Issue 16115] [REG2.067] Wrong code with comma operator
Jul 27, 2016
Walter Bright
Aug 13, 2016
Walter Bright
July 27, 2016
https://issues.dlang.org/show_bug.cgi?id=16115

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
Clearer test case:

int n;

auto call()
{
    version (none) // works
    {
    n = Test.tag;
    return null;
    }
    else // assert error
    {
    return n = Test.tag, null;
    }
}

struct Test
{
    enum tag = 42;
}

void main()
{
    call();

    assert(n == 42);
}

--
August 13, 2016
https://issues.dlang.org/show_bug.cgi?id=16115

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
https://github.com/dlang/dmd/pull/6054

--
August 13, 2016
https://issues.dlang.org/show_bug.cgi?id=16115

--- Comment #3 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/f9fd81983118d94a6f3da915e781c72b54a67247 fix Issue 16115 - [REG2.067] Wrong code with comma operator

https://github.com/dlang/dmd/commit/113e5f77d335dc3483127b13073690981b6a61b6 Merge pull request #6054 from WalterBright/fix16115

fix Issue 16115 - [REG2.067] Wrong code with comma operator

--
August 13, 2016
https://issues.dlang.org/show_bug.cgi?id=16115

github-bugzilla@puremagic.com changed:

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

--
October 01, 2016
https://issues.dlang.org/show_bug.cgi?id=16115

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/f9fd81983118d94a6f3da915e781c72b54a67247 fix Issue 16115 - [REG2.067] Wrong code with comma operator

https://github.com/dlang/dmd/commit/113e5f77d335dc3483127b13073690981b6a61b6 Merge pull request #6054 from WalterBright/fix16115

--