Compiler Crash - Can anybody confirm with latest DMD?

Stefan Koch uplink.coder at googlemail.com
Wed Apr 30 12:40:07 UTC 2025


On Monday, 28 April 2025 at 22:51:17 UTC, An Pham wrote:
> // Won't crash if using AliasSeq!(float)
>
>     void main()
>     {
>         import std.stdio : writeln;
>         import std.meta : AliasSeq;
>
>         static foreach (T; AliasSeq!(float, double, real))
>         {
>             writeln("T=", T.stringof);
>
>             // Static array
>             {
>                 T v = T.sizeof;
>                 T[1] tsa;
>                 tsa[0] = v;
>                 writeln("v=", v, ", tsa=", tsa, ", sizeof=", 
> tsa.sizeof);
>             }
>         }
>     }

It works for me with dmd 2.111.0


More information about the Digitalmars-d mailing list