Jump to page: 1 2
Thread overview
[Issue 21813] [REG-master] Bootstrap broken from dmd-cxx baseline.
Apr 09, 2021
Iain Buclaw
Apr 09, 2021
Nicholas Wilson
Apr 09, 2021
Iain Buclaw
Apr 09, 2021
Iain Buclaw
Apr 09, 2021
Nicholas Wilson
Apr 09, 2021
Iain Buclaw
Apr 09, 2021
Iain Buclaw
Apr 09, 2021
Dlang Bot
Apr 09, 2021
Dlang Bot
Apr 09, 2021
Dlang Bot
Apr 09, 2021
LucienPe
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21813

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Caused by https://github.com/dlang/dmd/pull/12386

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21813

Nicholas Wilson <iamthewilsonator@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iamthewilsonator@hotmail.co
                   |                            |m

--- Comment #2 from Nicholas Wilson <iamthewilsonator@hotmail.com> ---
defaultTargetOS is a trivial leaf function:

Target.OS defaultTargetOS()
 {
     static if (TARGET.Windows)
         return Target.OS.Windows;
     else static if (TARGET.Linux)
         return Target.OS.linux;
     else static if (TARGET.OSX)
         return Target.OS.OSX;
     else static if (TARGET.FreeBSD)
         return Target.OS.FreeBSD;
     else static if (TARGET.OpenBSD)
         return Target.OS.OpenBSD;
     else static if (TARGET.Solaris)
         return Target.OS.Solaris;
     else static if (TARGET.DragonFlyBSD)
         return Target.OS.DragonFlyBSD;
     else
         static assert(0, "unknown TARGET");
 }

is it hitting the static assert?

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21813

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to Nicholas Wilson from comment #2)
> is it hitting the static assert?

Nope, reduced:

---
Target.OS defaultTargetOS()
{
    return Target.OS.linux;
}

struct Target
{
    enum OS { linux }

    OS os = defaultTargetOS();

    void deinitialize()
    {
        this.init;
    }

    @property isPOSIX() scope @nogc
    {
    }
}
---

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21813

--- Comment #4 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to Iain Buclaw from comment #3)
> (In reply to Nicholas Wilson from comment #2)
> > is it hitting the static assert?
> 
> Nope, reduced:
And removing the deinitialize function causes:
---
dmd/target.d(10):        called from here: defaultTargetOS()
dmd: todt.c:77: virtual void Initializer_toDt(Initializer*,
DtBuilder&)::InitToDt::visit(Initializer*): Assertion `0' failed.

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21813

--- Comment #5 from Nicholas Wilson <iamthewilsonator@hotmail.com> ---
And to confirm this is dmd-cxx compiling dmd master that fails?

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21813

--- Comment #6 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to Nicholas Wilson from comment #5)
> And to confirm this is dmd-cxx compiling dmd master that fails?

Yes, which may mean some older versions of dmd fail too.

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21813

--- Comment #7 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to Iain Buclaw from comment #6)
> (In reply to Nicholas Wilson from comment #5)
> > And to confirm this is dmd-cxx compiling dmd master that fails?
> 
> Yes, which may mean some older versions of dmd fail too.
I say may, what I really mean is very likely.

Tracked it down, the ICE is related to, and is fixed by issue 19415.

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21813

--- Comment #8 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #12411 "[dmd-cxx] fix Issue 21813 - [REG-master] Bootstrap broken from dmd-cxx baseline" mentioning this issue:

- [dmd-cxx] Issue 21813 - [REG-master] Bootstrap broken from dmd-cxx baseline

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

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21813

--- Comment #9 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12410 "Issue 21813 - [REG-master] Bootstrap broken from dmd-cxx baseline" was merged into master:

- 60f47687eb933e5b45ca7909cb1963453256e113 by Iain Buclaw:
  Issue 21813 - [REG-master] Bootstrap broken from dmd-cxx baseline

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

--
April 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21813

--- Comment #10 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12411 "[dmd-cxx] fix Issue 21813 - [REG-master] Bootstrap broken from dmd-cxx baseline" was merged into dmd-cxx:

- f3d44ec5701b1b60b1f6bd6500b788be2a948320 by Iain Buclaw:
  [dmd-cxx] Issue 21813 - [REG-master] Bootstrap broken from dmd-cxx baseline

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

--
« First   ‹ Prev
1 2