Thread overview
[Issue 23905] Initialization of SumType with opaque enum causes ICE
May 08
RazvanN
May 09
RazvanN
May 09
Dlang Bot
May 10
Dlang Bot
May 16
Dlang Bot
May 08
https://issues.dlang.org/show_bug.cgi?id=23905

--- Comment #1 from Paul Backus <snarwin+bugzilla@gmail.com> ---
Reduced:

---
struct SumType(T)
{
    T storage;

    bool opEquals(Rhs)(Rhs rhs)
    if (is(typeof(Rhs.init)))
    {
    }

}

enum Foo;

void main(){
    SumType!Foo data = Foo.init;
}
---

--
May 08
https://issues.dlang.org/show_bug.cgi?id=23905

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com
           Severity|normal                      |critical

--
May 09
https://issues.dlang.org/show_bug.cgi?id=23905

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |regression

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
This seems to be a regression: https://run.dlang.io/gist/2a4e6b629a053d8a45a1a164a593246c?compiler=dreg

--
May 09
https://issues.dlang.org/show_bug.cgi?id=23905

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 created dlang/dmd pull request #15207 "Fix Issue 23905 - Initialization of SumType with opaque enum causes ICE" fixing this issue:

- Fix Issue 23905 - Initialization of SumType with opaque enum causes ICE

https://github.com/dlang/dmd/pull/15207

--
May 10
https://issues.dlang.org/show_bug.cgi?id=23905

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15207 "Fix Issue 23905 - Initialization of SumType with opaque enum causes ICE" was merged into stable:

- 355a261e39d05958025239a7484f190ba3886a80 by RazvanN7:
  Fix Issue 23905 - Initialization of SumType with opaque enum causes ICE

https://github.com/dlang/dmd/pull/15207

--
May 16
https://issues.dlang.org/show_bug.cgi?id=23905

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15238 "merge stable" was merged into master:

- 2a650f7609f579d026b6f363b4ad3ed9e162984e by Razvan Nitu:
  Fix Issue 23905 - Initialization of SumType with opaque enum causes ICE
(#15207)

https://github.com/dlang/dmd/pull/15238

--