[Bug c++/32786] Incorrect code compiles and runs well
bachmann dot matt at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Jul 17 03:39:00 GMT 2007
------- Comment #2 from bachmann dot matt at gmail dot com 2007-07-17 03:39 -------
but thats just it! alright it does not infinite loop but for me it does not
crash, it runs perfectly. Here is my output:
$ g++ HW1.cpp
$ ./a.out
23
Mary had a little lamb.
ary had a little lamb.
ry had a little lamb.
y had a little lamb.
had a little lamb.
had a little lamb.
ad a little lamb.
d a little lamb.
a little lamb.
a little lamb.
little lamb.
little lamb.
ittle lamb.
ttle lamb.
tle lamb.
le lamb.
e lamb.
lamb.
lamb.
amb.
mb.
b.
.
15
Thar she blows!
har she blows!
ar she blows!
r she blows!
she blows!
she blows!
he blows!
e blows!
blows!
blows!
lows!
ows!
ws!
s!
!
Is there any reason that anyone can think of why this would be? I showed my
professor and he is the one who suggested I submit a bug. It does this under
linux, but in windows using devC++(using a windows port of g++) it breaks as
its supposed to.
--
bachmann dot matt at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32786
More information about the Gcc-bugs
mailing list