This is the mail archive of the gcc@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: To const or not to const...


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 at codesourcery dot com : http://www.cs.bris.ac.uk/~nathan/ : nathan at acm dot org



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