This is the mail archive of the gcc-patches@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]

Re: C++ PATCH: Fix PR 13275


On Wed, Dec 17, 2003 at 05:37:44PM -0800, Mark Mitchell wrote:
> I didn't think any special handling was required for C, but if special
> handling *is* required, the same trick should work.

C also has the concept of integer constant expression.  We don't
currently implement that notion at all, so the issue hasn't come
to a head yet.

> Why are we considering reimplementing working functionality that
> consists of a very few lines of localized changes?

I guess some object to the exact form of the solution.  I don't
really care one way or the other, but *definitely* want the same
solution to work for both C and C++.

I have interest in this because the C and C++ front ends are
decomposing &s.x and &a[x] to pointer arithmetic too early, and
I want to stop that.  Except that doing so has implications for
offsetof; having some hook to handle that case specially makes
everything suddenly all better.


r~


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