Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uflorida!novavax!proxftl!twwells!bill From: bill@twwells.uucp (T. William Wells) Newsgroups: comp.lang.c Subject: Re: ANSI grammar questions Summary: Oops! Message-ID: <185@twwells.uucp> Date: 19 Nov 88 12:48:56 GMT References: <7938@bloom-beacon.MIT.EDU> <179@twwells.uucp> <467@auspex.UUCP> Reply-To: bill@twwells.UUCP (T. William Wells) Organization: None, Ft. Lauderdale Lines: 20 In article <467@auspex.UUCP> guy@auspex.UUCP (Guy Harris) writes: : >: void static extern int auto volatile fn(); : > : >Right. This is intentional. Believe it or not, there are situations : >where this flexibility is useful. : : And those cases that are truly *illegal*, such as the one cited above, : can still be caught by the compiler even though they pass the grammar. Whoops! I didn't carefully read the examples, supposing that they were all of the kind expressing reordering of the type-specifier and storage-class. This last example has more than one storage class and more than one type-specifier, so is illegal. As an aside, catching this kind of error in the grammar can really make the grammar *huge*. This is why one does it outside the grammar. --- Bill {uunet|novavax}!proxftl!twwells!bill