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

Graham Fawcett fawcett at uwindsor.ca
Tue Jun 15 10:39:50 PDT 2010


On Tue, 15 Jun 2010 13:24:07 -0400, bearophile wrote:

> 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

OK, added.

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

"void initializer has no value" on struct/union members initialized to 
"void"

Thanks,
Graham


More information about the Digitalmars-d mailing list