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: [PATCH] Fix PR21082 for C++


On Mon, Apr 25, 2005 at 11:11:20AM +0200, Richard Guenther wrote:
> Well, I neither see pointers nor multiplication involved here ;)

Um, multiplication certainly is: (i-j)*sizeof(T).

And you're saying that you've already got the ptrdiff_t, and are
not in fact looking at the type of &a[i], which is still a pointer?

If so, then that's fine, but I wouldn't have expected that to be true.

> ... is TYPE_DOMAIN guaranteed to exist?

No.  It'll be missing for "extern int a[];".



r~


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