Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!usc!orion.oac.uci.edu!ucivax!ucla-cs!twinsun!eggert From: eggert@ata.twinsun.com (Paul Eggert) Newsgroups: comp.std.c Subject: typedef void t; int f(t); ? Message-ID: <1990Sep14.012909.1987@twinsun.com> Date: 14 Sep 90 01:29:09 GMT Sender: news@twinsun.com Organization: Twin Sun, Inc Lines: 17 Originator: eggert@ata Nntp-Posting-Host: ata Is the following a conforming ANSI C program? typedef void t; int f(t); int f(t) { return 0; } 3.5.4.3 (page 68 line 37) seems to say that line 2 is bad, because it mentions the keyword `void' without talking about types. But 3.7.1 (page 83 line 6) seems to say that line 3 is OK, because it talks about the void type. Surely lines 2 and 3 are both OK, or both bad. While we're on the subject, what about qualified voids? int g(volatile void) { return 0; } typedef volatile void c; int g(c);