This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: standard or not?
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Israel Fdez Cabrera <israel at seg dot inf dot cu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 25 Jun 2003 21:22:10 -0300
- Subject: Re: standard or not?
- Organization: GCC Team, Red Hat
- References: <200306251650.30988.israel@seg.inf.cu>
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