Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!rutgers!lll-lcc!pyramid!batcomputer!gdykes From: gdykes@batcomputer.tn.cornell.edu (Gene Dykes) Newsgroups: comp.lang.c++ Subject: Cornell V1.2 Bug Report (2/5) Message-ID: <910@batcomputer.tn.cornell.edu> Date: Thu, 7-May-87 10:21:54 EDT Article-I.D.: batcompu.910 Posted: Thu May 7 10:21:54 1987 Date-Received: Sat, 9-May-87 09:37:13 EDT Reply-To: gdykes@tcgould.tn.cornell.edu.UUCP (Gene Dykes) Distribution: world Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 22 void f (int dummy1, struct { int flag; } *x, int dummy2) { x->flag = 0 ; } /* The above code fails to compile, with the following message: "bug.c", line 4: error: x is undefined The following three ways all "fix" the bug: 1) remove "dummy1" from the function call 2) remove "dummy2" from the function call 3) declare the structure ahead of time with a tag, and use the tag to declare x */ -- Gene Dykes, 120 Rand Hall, Cornell U., Ithaca, NY 14853 (607)255-6713 UUCP: {uw-beaver,ihnp4,decvax,allegra,vax135}!cornell!batcomputer!gdykes ARPA: gdykes@tcgould.tn.cornell.edu BITNET: gdykes@CRNLTHRY