"ubyte[size] store = void" in std.variant

bearophile bearophileHUGS at lycos.com
Tue Jun 15 10:24:07 PDT 2010


Graham Fawcett:
>   struct foo {
>     enum N = 10; // or whatever
>     ubyte[N] store = void;
>   }
>   foo z = foo();

I think there's a bug there, you can add it to Bugzilla (if not already present):

struct Foo {
    int[1] a = void;
}
void main() {
    Foo f = Foo();
}

Bye,
bearophile


More information about the Digitalmars-d mailing list