[Bug c++/11072] [3.4 regression] Implementation of offsetof macro
bangerth@ices.utexas.edu
gcc-bugzilla@gcc.gnu.org
Tue Jun 3 13:48:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list