Bug 311040 (MONO23391) - mono bug with 'count++'
Summary: mono bug with 'count++'
Status: RESOLVED MOVED
Alias: MONO23391
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-13 04:40 UTC by Adam Treat
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 17:56:15 UTC


---- Reported by manyoso@yahoo.com 2002-04-12 21:40:27 MST ----

Hello,

First, the code ;-)

using System;

public class CountTest {

        public static void Main(string[] args)
        {
                int count;
                while (count != 10)
                        Console.WriteLine(count++);
        }
}

Second, the problem ;-)

run that with mint and you get the expected output.

run that with mono and output is well.... buggy :-)

Cheers,

Adam



---- Additional Comments From manyoso@yahoo.com 2002-04-12 21:59:03 MST ----

it looks like the bug is with mcs/mint.  the code should not compile.  I 
initialized count and now mono runs it just fine.  it seems mcs is teaching 
me bad habits ;-)

sorry if this has already been reported.



---- Additional Comments From lupus@ximian.com 2002-04-13 07:05:01 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO22724 ***


Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"