This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11072] [3.4 regression] Implementation of offsetof macro
- From: "bangerth at ices dot utexas dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2003 13:48:29 -0000
- Subject: [Bug c++/11072] [3.4 regression] Implementation of offsetof macro
- References: <20030603013439.11072.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11072
------- Additional Comments From bangerth@ices.utexas.edu 2003-06-03 13:48 -------
Subject: Re: [3.4 regression] Implementation of offsetof
macro
> ------- Additional Comments From rwgk@yahoo.com 2003-06-03 02:29 -------
> ISO/IEC 9899:1999 (E)
>
> 7.17 Common definitions <stddef.h>
>
> 3 The macros are
>
> NULL
>
> which expands to an implementation-defined null pointer
> constant; and offsetof(type, member-designator) which
> expands to an integer constant expression that has type
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
This provision is only in the C standard. The C++ standard has a different
wording, which I believe is intentional given that 18.1.2 says
The contents are the same as in the Standard C library header stddef.h,
with the following changes:
followed by definitions of NULL and offsetof.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ices.utexas.edu
www: http://www.ices.utexas.edu/~bangerth/
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.