This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32786] Incorrect code compiles and runs well
- From: "bachmann dot matt at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2007 03:39:13 -0000
- Subject: [Bug c++/32786] Incorrect code compiles and runs well
- References: <bug-32786-14864@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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