[Issue 15422] [REG2.066] associative array of nested struct - crash on usage

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Dec 9 07:42:57 PST 2015


https://issues.dlang.org/show_bug.cgi?id=15422

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
            Summary|associative array of nested |[REG2.066] associative
                   |struct - crash on usage     |array of nested struct -
                   |                            |crash on usage

--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Ivan Kazmenko from comment #1)
> With dmd 2.065.0, it does not compile, complaining that there is no opCmp
> for `Foo`s.
> 
> With dmd 2.066.0, and up to the current version dmd 2.069.2, it compiles
> fine but crashes at runtime.
> 
> So I'd say it's a regression somewhere between 2.064 and 2.066.

The guilty commit had been introduced in 2.065, but the actual problem had been
hidden until 2.066 was released, by the compiler's "no opCmp" complaint.

PR to fix the issue: https://github.com/D-Programming-Language/dmd/pull/5304

--


More information about the Digitalmars-d-bugs mailing list