| To: | austin-group-l@xxxxxxxxxxxxx |
|---|---|
| Subject: | Re: [1003.1(2008)/Issue 7 0000074]: Pointer Types Problem |
| From: | David-Sarah Hopwood <david-sarah@xxxxxxxxxxxxx> |
| Date: | Sat, 29 Aug 2009 21:56:02 +0100 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Nl6tBLJTMYFDb6LkfBRDra783xwSGywqIGxwPTRGNtk=; b=jVzGY/5ymoz3yJLZ/LNPL93hI0bYAmbR7lzoNboyK9Q+t20X3SgqptEib1PTL0bG0N BUzPv20jCpyMvOve/8PdL+2isnbX1qpRxLodv0vq7h3t1sQ+G81hDwJvjtj9LnKeHxsV 8iBHmr2UOWDofljYUWTeZhQ1FhZQul80MZerc= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=tSjxp9nTSIyQUBSP1vT+O4w1BxMg9jKkLjZlDJBOJTTB2nJGNIDp4mfFee2PGC7U8R XaDuTsqXj44G3ZHGVFWKuvzD8QS0vnbQG+fyFJolS6C2xeFxcBW7Zkd3ZJg+wNmw1/PB RkeNt3cuxrl24zYKLWHl0Q5NxY477MLnMW0N4= |
| References: | <f6e89684e7d6fc9a7b734e179e7e9c6f@austingroupbugs.net> <20090827145851.GA24688@squonk.masqnet> <9FC357E76048C74C93F3BD3D69A16B8804B62ED0@nova.ott.qnx.com> <20090829092234.GA11594@squonk.masqnet> |
Geoff Clare wrote: > Wojtek Lerch <Wojtek@qnx.com> wrote, on 28 Aug 2009: [...] >> I also suggest removing the lie about the ISO C standard. The above >> conversion has undefined behaviour in ISO C but it does not "require a >> warning". ISO C does *allow* warnings (a.k.a. diagnostics) in this >> situation, and some compilers may take advantage of it, but that's just >> because ISO C allows compilers to generate diagnostics whenever they >> feel like it. > > The dlsym() issue was discussed extensively in 2002, and the end > result was interpretation AI-003: > > www.opengroup.org/austin/interps//uploads/40/1068/ai-003.txt > > That's where the text about C99 requiring the warning is from. > The interpretation response also includes this statement about the > cast that used to be in the example (and is now being reinstated): > > "In this case, the 1999 C Standard does indeed require a warning > to be issued for the function call shown in the dlsym() examples > section on XSH P259, L8566." > > I haven't re-read all of the 2002 discussion, but it seems to me > that if anyone had made a convincing argument that C99 does not > require the warning, then AI-003 would not have been approved with > that statement. Huh? Of course it is possible for an interpretation containing mistakes, such as this one about C99, to be approved. C99 *never* requires warnings. It sometimes requires "diagnostics" (when "shall" conformance language is used in a constraint clause), but it never distinguishes between warnings and errors. -- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com |
| Previous by Date: | Re: [1003.1(2008)/Issue 7 0000074]: Pointer Types Problem, David-Sarah Hopwood |
|---|---|
| Next by Date: | Re: [1003.1(2008)/Issue 7 0000074]: Pointer Types Problem, Wojtek Lerch |
| Previous by Thread: | Re: [1003.1(2008)/Issue 7 0000074]: Pointer Types Problem, David-Sarah Hopwood |
| Next by Thread: | Re: [1003.1(2008)/Issue 7 0000074]: Pointer Types Problem, Geoff Clare |
| Indexes: | [Date] [Thread] [All Lists] |