Skip to content

DMD miscompiles real[1] #21323

Description

@apz28
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);
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions