delorie.com/archives/browse.cgi | search |
From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Help... classes and optimization problem |
Date: | 28 May 2001 17:27:09 GMT |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 14 |
Message-ID: | <9eu1pd$b12$1@nets3.rz.RWTH-Aachen.DE> |
References: | <k1BP6.1409$vu4 DOT 130732 AT news3 DOT oke DOT nextra DOT no> <Xns90AE75691951Bmanniheumanngmxde AT 130 DOT 133 DOT 1 DOT 4> <c9dQ6.2081$vu4 DOT 202315 AT news3 DOT oke DOT nextra DOT no> <Xns90AF7A1A5C9F0manniheumanngmxde AT 130 DOT 133 DOT 1 DOT 4> <JguQ6.2118$lM3 DOT 46301 AT news1 DOT oke DOT nextra DOT no> <Xns90AFBDEE83215manniheumanngmxde AT 130 DOT 133 DOT 1 DOT 4> <WyvQ6.2524$vu4 DOT 248680 AT news3 DOT oke DOT nextra DOT no> |
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 991070829 11298 137.226.32.75 (28 May 2001 17:27:09 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 28 May 2001 17:27:09 GMT |
Originator: | broeker@ |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Vermin <ratspl AT hotmail DOT com> wrote: [...] > But why did it all work well when I didn't use the optimization switch? Any > clue? The program was causing what the language definitions call "undefined behaviour". Which means that absolutely *anything* can happen, up to and including that you get exactly what you expected, but only if it's Tuesdays, the moon doesn't shine and you compiled without optimization. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |