Thread overview
[Issue 15664] [REG2.064] incorrect initialisation of member of an immutable struct
[Issue 15664] incorrect initialisation of member of an immutable struct
Feb 09, 2016
ag0aep6g@gmail.com
Feb 11, 2016
Kenji Hara
Feb 11, 2016
Kenji Hara
Mar 11, 2016
Martin Krejcirik
February 09, 2016
https://issues.dlang.org/show_bug.cgi?id=15664

ag0aep6g@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |ag0aep6g@gmail.com

--
February 11, 2016
https://issues.dlang.org/show_bug.cgi?id=15664

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
            Summary|incorrect initialisation of |[REG2.064] incorrect
                   |member of an immutable      |initialisation of member of
                   |struct                      |an immutable struct
                 OS|Linux                       |All

--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> ---
This is a codegen regression from 2.094, introduced in: https://github.com/D-Programming-Language/dmd/pull/2659

--
February 11, 2016
https://issues.dlang.org/show_bug.cgi?id=15664

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

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

--
February 23, 2016
https://issues.dlang.org/show_bug.cgi?id=15664

--- Comment #3 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/c396fd9941f873c6ed9fd5ac281621dd911d6f7a fix Issue 15664 - incorrect initialisation of member of an immutable struct

When a struct literal appears in dataseg or TLS variable initialization, its elements `StructLiteralExp.elements[i]` are also painted to the qualifier of constructed struct type. But in `toDtElem`, type identity comparison was used to calculate array dimension, so the qualifier difference had caused wrong code.

https://github.com/D-Programming-Language/dmd/commit/cf670840a444413bc99ce721f19260c35450a766 Merge pull request #5440 from 9rnsr/fix15664

[REG2.064] Issue 15664 - incorrect initialisation of member of an immutable struct

--
February 24, 2016
https://issues.dlang.org/show_bug.cgi?id=15664

--- Comment #4 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/c396fd9941f873c6ed9fd5ac281621dd911d6f7a fix Issue 15664 - incorrect initialisation of member of an immutable struct

https://github.com/D-Programming-Language/dmd/commit/cf670840a444413bc99ce721f19260c35450a766 Merge pull request #5440 from 9rnsr/fix15664

--
March 11, 2016
https://issues.dlang.org/show_bug.cgi?id=15664

Martin Krejcirik <mk@krej.cz> changed:

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

--