Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!ka From: ka@june.cs.washington.edu (Kenneth Almquist) Newsgroups: comp.unix.questions Subject: Re: Yacc neophyte vs inscrutable error message Message-ID: <7874@june.cs.washington.edu> Date: 14 Apr 89 21:19:44 GMT References: <255@sickkids.UUCP> Organization: U of Washington, Computer Science, Seattle Lines: 9 mark@sickkids.UUCP (Mark Bartelt) writes: > [Message from YACC:] > fatal error: default action causes potential type clash, line xxx When you omit an action, YACC supplies the default action {$$ = $1}. You get the above message if $$ and $1 have different types. The line number may refer to the start of the rule following the rule that is in error. Kenneth Almquist