[Bug c++/57842] for statement not terminating properly

2013-07-07 Thread groundup2360917182914017 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57842 --- Comment #2 from Anthony Brown --- I see the problem with my code. There is no bug. The second if should be else if. Sorry. On Sun, Jul 7, 2013 at 12:15 PM, pinskia at gcc dot gnu.org < gcc-bugzi...@gcc.gnu.org> wrote: > http://gcc.gnu.or

[Bug c++/57842] New: for statement not terminating properly

2013-07-07 Thread groundup2360917182914017 at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: groundup2360917182914017 at gmail dot com In the program below. If I enter 0 through 10 it should print 0 1 2 3 4 5 6 7 8 9 10 But it doesn't. I think what it print is a error. 0 1 2 3 4 5 6 7 8 9 10 10 11 Source Code is #in