From 4735961928089250125
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7522e5259f7267d6
X-Google-Attributes: gidf78e5,public
From: Francis Glassborow <francis@robinton.demon.co.uk>
Subject: x = y = z; Undefined?
Date: 2000/01/13
Message-ID: <adKDrBAVD+e4Ewq3@robinton.demon.co.uk>#1/1
X-Deja-AN: 571868925
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of 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-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 947721158 mail2news:6854 mail2news mail2news.demon.co.uk
Organization: Southfield Microcomputer SS
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Mime-Version: 1.0
Reply-To: Francis Glassborow <francisG@robinton.demon.co.uk>
Newsgroups: comp.std.c++

In article <387bb7c0.39451037@news.csrlink.net>, John Potter
<jpotter@falcon.lhup.edu> writes
>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.

As it explicitly places no requirements on a compiler faced with code
including undefined behaviour I can see no reason (from the Standard)
why a stupid implementer should not do something malicious.  Of course
he will not have any customers but that is something else.  The Standard
does not grant any rights with regard to code including undefined
behaviour, it simply disowns it places no requirements on implementers.


Francis Glassborow      Journal Editor, Association of C & C++ Users
64 Southfield Rd
Oxford OX4 1PA          +44(0)1865 246490
All opinions are mine and do not represent those of any organisation

---
[ 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              ]




