On Wed, 3 Dec 2014, DJ Delorie wrote:

> > However, pointer subtraction still returns ptrdiff_t, and sizeof still 
> > returns size_t,
> 
> Why?

Well, TR 18037 doesn't do anything to change that, so if you define some 
target-specific way to use different types in certain circumstances then 
you're going outside what was allowed for in the TR.  In the case of 
sizeof there's also the issue the same type being used for objects in 
different address spaces - how do you determine when sizeof (which can be 
a runtime operation when VLAs are involved) should return some different 
type because of address space involvement, or what type to use to store a 
VLA size at runtime?

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to