> On Thu, Dec 4, 2008 at 12:33 PM, Sape Mullender
> <[EMAIL PROTECTED]> wrote:
>> B bvar = {
>> .B = {
>> .a1 = 2,
>> .b1 = 2,
>> },
>> };
>
> that doesn't work for me.
> i get:
> x.c:18 structure element not found B
> x.c:18 more initializers than structure: bvar
>
> changing the .B to .A doesn't work either, nor does
> {.A = {.a1 = 3}, .b1 = 4}
> which intuitively (without looking at the compiler code) seems the
> most likely to work...
seems like a subtle compiler nit (i hope i'm not out-of-date
again), this initialization does work
B bvar = {
{.a1 = 1,},
.b1 = 1,
};
the {} fix the problem but should not be necessary.
- erik