This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: standard or not?


On Jun 25, 2003, Israel Fdez Cabrera <israel@seg.inf.cu> wrote:

> int _val : 2;

> he told me that the number after the identifier refers to the number
> of bits the variable will have. I tested this in gcc 3.2 and it
> didn't worked.

It works only for members of structs or unions, and it's a C and C++
standard feature.  If it works in other compilers for non-members,
it's an extension.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]