bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem compiling


From: Kevin Ryde
Subject: Re: Problem compiling
Date: Mon, 19 May 2003 07:55:22 +1000
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux)

address@hidden (Karl Berry) writes:
>
>     !   char str[2] = { c, 0 };
>
> What is wrong with this?  Why does the initialization have to have a
> constant value?  I could declare int x = c, so why not able to use a
> variable as an array element initializer?

I think non-constant initializers in aggregates might be a c99-ism
(also supported by gcc prior to that).  See the "Initializers" node in
the gcc docs.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]