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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 9 07:27:08 UTC 2021


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

Nicholas Wilson <iamthewilsonator at hotmail.com> changed:

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

--- Comment #2 from Nicholas Wilson <iamthewilsonator at 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?

--


More information about the Digitalmars-d-bugs mailing list