This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13275] [3.4 regression] Implementation of offsetof macro
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2003 12:53:44 -0000
- Subject: [Bug c++/13275] [3.4 regression] Implementation of offsetof macro
- References: <20031203003343.13275.jbrandmeyer@earthlink.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2003-12-03 12:53 -------
Subject: Re: [3.4 regression] Implementation of offsetof macro
"jsm at polyomino dot org dot uk" <gcc-bugzilla@gcc.gnu.org> writes:
| member). Of course the syntax means that __builtin_offsetof is actually a
| keyword treated specially by the parser, rather than a built-in function,
A while ago, when I suggested something like that for reflection in C++,
someone had been arguing me saying that __builtin_ prefix is pure
nonsense. But, when you look at it, it just makes sense from the
"right" perspective :-)
| (Both C and C++ should have __builtin_offsetof, preferably with the same
| syntax, for a correct implementation.)
Yup.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13275