This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13275] [3.4 regression] Implementation of offsetof macro


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]