From 4197037129893237475
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7522e5259f7267d6
X-Google-Attributes: gidf78e5,public
From: James Kuyper <kuyper@wizard.net>
Subject: Re: x = y = z;  Undefined?
Date: 2000/01/12
Message-ID: <387C7098.256766C8@wizard.net>#1/1
X-Deja-AN: 571717255
X-NNTP-Posting-Host: 209.8.153.30
Content-Transfer-Encoding: 7bit
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <MPG.12ddaa92533ae9679896a6@news.supernews.com> <t7so0bqea7.fsf@calumny.jyacc.com> <3876254a.30903561@news.csrlink.net> <derobert-9FC87E.01591309012000@news.erols.com> <3879ca08.3142429@news.csrlink.net> <derobert-8223E1.23372510012000@news.erols.com> <387b3c32.7816532@news.csrlink.net> <387B6338.FCE9D984@sensor.com> <387bb7c0.39451037@news.csrlink.net>
X-Accept-Language: en,de,es,ru
X-UID: 0000000001
X-Status: $$$T
Content-Type: text/plain; charset=us-ascii
X-Trace: tw11.nn.bcandid.com 947679253 209.8.153.30 (Wed, 12 Jan 2000 05:14:13 MST)
Organization: bCandid - Powering the world's discussions - http://bCandid.com
Mime-Version: 1.0
NNTP-Posting-Date: Wed, 12 Jan 2000 05:14:13 MST
Newsgroups: comp.std.c++
Originator: clamage@taumet


John Potter wrote:
....
> You completely missed the point.  Read again.  Any compiler which
> decides to detect the presence of undefined code BETTER generate
> a diagnostic about its detection and not generate malicious code
> intended to do damage.

True, but only as a QoI issue, not as a standard conformance issue. If
the Devil put out a version of MSVC++6.66 that stole your soul any time
you have it compile code that allows undefined behavior, that could
still be a conforming implementation of C++.

> The standard does not require the detection of undefined behavior
> to allow generation of reasonable optimized code.  It does not
> grant the right to commit crimes against society when it detects
> undefined behavior.

True; neither does it prohibit committing such crimes; that's the job of
the legal system, not the C++ standard.


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




