Path: utzoo!attcan!uunet!peregrine!elroy!ames!mailrus!purdue!decwrl!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.c Subject: Re: array[-1] -- permitted? Message-ID: <816@goofy.megatest.UUCP> Date: 22 Sep 88 19:43:44 GMT References: <1237@imagine.PAWL.RPI.EDU> Organization: Megatest Corporation, San Jose, Ca Lines: 26 From article <1237@imagine.PAWL.RPI.EDU>, by kyriazis@rpics (George Kyriazis): ... > > (b) yacc uses array[-1]. If it is considered > invalid, that will mean that yacc has to be rewriten for the new standard? > There's more. Here's some code I ripped directly from a y.tab.c (yacc output) of a compiler I'm working on: case 28: # line 160 "gram.y" { Mpc_insert_with_searchdir(yypvt[-3],yypvt[-1]); yyval = tree(N_INSERT_DECL3);} break; case 29: # line 166 "gram.y" { yyval= tree(N_CONST_DECL); } break; case 30: # line 171 "gram.y" { yyval= list(L_CONST_DECL_LIST, (Node*)0, yypvt[-0]); } break; 'Nuff said? I missed some of the early postings on this subject. Could someone be kind enough to bring me up to date? Is the committee going to break this code? If so, why, fer Pete's sake?