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

Re: gcc-2.95.4 buggy?



itz> Use of initialized auto arrays is a GNU extension, so gcc can
itz> implement it an way they damn please, including a hidden call to memset.

Ben> Initialized auto arrays are not a GNU extension.  Support is
Ben> required by both ISO C90 and C99.  You are perhaps thinking of
Ben> auto arrays initialized to values that are not constant
Ben> expressions?

Yes, you're right.

But if the expression _is_ constant, a static variable is semantically
equivalent, and it should work around the problem.

-- 
Ian Zimmerman, Oakland, California, U.S.A.
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087
EngSoc adopts market economy: cheap is wasteful, efficient is expensive.



Reply to: