To const or not to const...

Nathan Sidwell nathan@codesourcery.com
Thu Feb 20 17:57:00 GMT 2003


Jan-Benedict Glaw wrote:

> 
> "Hello"[2] (which is 'l') is truly constant, in my eyes. This could fall
> under C99 6.6. OTOH, as also mentioned on #gcc, this may be some
> undefined thing wrt. C99 and it may be in conflict with 6.6.9.
> However, I'd love to see this implemented:-)
it fails to be an arithmetic constant expression as it involves something
not on the list of allowed things that [6/6]/9 lists.

But, we're allowed to accept other things in an implementation defined
manner (para 10).

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org




More information about the Gcc mailing list