Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: double free Date: Wed, 20 Jul 2016 09:36:08 -0700 Organization: None to speak of Lines: 30 Message-ID: References: <57837892.8808984@news.xs4all.nl> <481f30b4-acb3-4445-92b3-c403dc3e51f7@googlegroups.com> <8760sc2aiz.fsf@bsb.me.uk> <87twfv26cv.fsf@bsb.me.uk> <2cfb31aa-11dd-422c-a5ea-07f44bee0deb@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="6137"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18k/DTYwpiy6hl5yn0ExMwD" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:uCWTALKMnebS5wylEQhduqjPLLk= sha1:4Ht/buP4XXgFsov/VpYPPep0A+I= Xref: csiph.com comp.lang.c:90672 Tim Rentsch writes: > Keith Thompson writes: >> Tim Rentsch writes: [...] >>> Also it is worth remembering that there is another form of unary >>> expression in C (including pre-C11 C) where the operation symbol >>> is not a punctuator (ie, it is alphabetic). >> >> Are you referring to `sizeof ( type-name )`? > > No, I lump that in with the other sizeof. I deliberaly didn't > say before to let people have the pleasure of discovering it for > themselves, but enough time has passed so a spoiler is warranted. > Section 6.10.1 p1. (Note that here too this operator may be used > without parentheses.) Very cute. But I question whether that's really a "unary expression". I note that 6.10.1p1 doesn't use that phrase (though that's likely what was intended), and I cite the definition of "unary-expression" in 6.5.3. Bottom line: I'd say the wording is a bit sloppy, with the result that the meaning is still perfectly clear but it can lead to pedantic quibbles like this one. -- 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"