[Issue 11344] [2.064 beta] Error: object.destroy called with argument types matches both

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 24 13:42:24 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11344



--- Comment #1 from rswhite4 at googlemail.com 2013-10-24 13:42:23 PDT ---
I reduced it.

This code fails in dmd 2.063.2 and dmd 2.064 beta:
----
import std.stdio;

struct vec2f {
public:
    float[2] values;

    alias values this;
}

void main() {
    vec2f v;
    destroy(v);
}
----

But this fails only with 2.064 beta:
----
import std.stdio;

struct vec2f {
public:
    float[2] values;

    alias values this;
}

void main() {
    vec2f v;
    destroy!vec2f(v);
}
----

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list