Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Is it legal to download K&R from this site ? Date: Tue, 14 Feb 2017 09:30:36 -0800 Organization: None to speak of Lines: 25 Message-ID: References: <5bd1fc96-6957-4008-9511-de22b9e18a9c@googlegroups.com> <5f4ef2ef-426e-265b-b0c3-c42d76dc5a7a@verizon.net> <58a2f72f.1232984@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="224226333e9535e2f06996e59b2311d1"; logging-data="29040"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zeVnlVBNKZ8sfgWJz6zXR" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:5Crx4RuieNE3w5fOxwUh6ziFAhc= sha1:Oh0jf48ze9CJdkgFA+AlZkS0GL8= Xref: csiph.com comp.lang.c:103896 James Kuyper writes: > On 02/14/2017 07:25 AM, Richard Bos wrote: >> "James R. Kuyper" wrote: >> >>> n1570.pdf is almost identical to the final C2011 standard, having only >>> one known error, and is also available for free. >> >> For the record, what is that error? > > It incorrectly indicates that _Alignof() can be applied to an > expression, just like sizeof(). That's how it was originally specified, > but between the creation of n1570.pdf and approval of the final draft, > the committee decided to remove that feature. Not quite. Both N1570 and the final standard indicate in the grammar that _Alignof can only be applied to a parenthesized type name. The error in N1570 is that it includes the operand of _Alignof as a 4th exception to the rule that array expressions are converted to pointer expressions. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"