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]

Re: New testcase


On Tue, Nov 14, 2000 at 07:58:47PM +0000, Joseph S. Myers wrote:
> James Kuyper <kuyper@wizard.net>:
> 	I don't think that the "other forms" allowed by p10 are meant to modify
> 	the preceding semantic descriptions, but to add to them. I think an
> 	implementation is not allowed to recognize additional integral constant
> 	expressions (p6), arithmetic constant expressions(p8), or pointer
> 	constant expressions (p9). I'm not sure whether the "other forms" are
> 	intended to be usable in initializers (p7).

What a singularly pointless distinction.  If you can't use some
"other form" in an initializer, what good is it?

Ok, let GCC define `&"foo"[1] - &"foo"[0]' and `&&foo - &&bar' and
similar constructions to be `symbolic difference constant expressions'
which have integral value.  Widen p7 for the nonce to include "other
forms", as nothing else makes sense.



r~

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