home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sdrc!thor!scjones
- From: scjones@thor.sdrc.com (Larry Jones)
- Newsgroups: comp.lang.c
- Subject: Re: Interesting bug
- Message-ID: <2418@sdrc.COM>
- Date: 19 Dec 92 19:11:58 GMT
- References: <92353.203941SML108@psuvm.psu.edu>
- Sender: news@sdrc.COM
- Lines: 18
-
- In article <92353.203941SML108@psuvm.psu.edu>, SML108@psuvm.psu.edu writes:
- > void routine (x)
- > int *x;
- > {
- > int x;
- > }
- >
- > My compiler did not trap this as an error... Shouldn't it? Or at least
- > give a warning?
-
- If it claims to be an ANSI compiler, then it should have produced some
- kind of diagnostic. Most pre-ANSI compilers, however, considered the
- parameters to be at an outer scope level than the local variables which
- makes this a perfectly valid override.
- ----
- Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH 45150-2789 513-576-2070
- larry.jones@sdrc.com or ...uunet!sdrc!larry.jones
- I've got to start listening to those quiet, nagging doubts. -- Calvin
-