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

Nicholas Wilson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |m

--- Comment #2 from Nicholas Wilson <[email protected]> ---
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?

--

Reply via email to