Re: [CIL users] static const

2012-07-24 Thread Jan Smets
Apparently the problem is when this code gets heapified by CIL. GCC 4.6 accepts this code at function scope but not at file scope. Thanks for your answers. - Jan On 24/07/2012 11:00, Oliver Schwahn wrote: > Hi, > I also think that this is invalid C code. Initializers for static local > variables

[CIL users] (no subject)

2012-07-24 Thread Alberto Barbaro
-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile secur

Re: [CIL users] static const

2012-07-24 Thread Oliver Schwahn
Hi, I also think that this is invalid C code. Initializers for static local variables have to be constant values. Variables with const modifier are not considered a constant value in this context (at least not by gcc, not sure what the standard says). So, the following code does also NOT work..