This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Incorrect usage of DECL_C_BIT_FIELD
- To: martin at mira dot isdn dot cs dot tu-berlin dot de
- Subject: Re: Incorrect usage of DECL_C_BIT_FIELD
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 23 Sep 1999 18:27:58 -0700
- Cc: egcs-bugs at egcs dot cygnus dot com
- Organization: CodeSourcery, LLC
- References: <199909231501.RAA06205@mira.isdn.cs.tu-berlin.de>
>>>>> "Martin" == Martin v Loewis <martin@mira.isdn.cs.tu-berlin.de> writes:
Martin> So, my question is: Is DECL_C_BIT_FIELD supposed to work
Martin> for all _DECL nodes, or just for fields? How should this
Martin> be corrected?
Just for FIELD_DECLs. Check that the field is a FIELD_DECL before
using it. :-)
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com