Compiler Crash - Can anybody confirm with latest DMD?

An Pham home at home.com
Mon Apr 28 22:51:17 UTC 2025


// 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);
             }
         }
     }




More information about the Digitalmars-d mailing list