Bug 313169 (MONO51113) - [PATCH] mcs doesn't flag cs1023 correctly
Summary: [PATCH] mcs doesn't flag cs1023 correctly
Status: RESOLVED FIXED
Alias: MONO51113
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other All
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Ben Maurer
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2003-11-18 20:33 UTC by Gonzalo Paniagua Javier
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
patch (1.10 KB, patch)
2004-03-29 03:43 UTC, Thomas Wiest
Details | Diff

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


---- Reported by gonzalo@ximian.com 2003-11-18 13:33:43 MST ----

Try compiling this:
class Test
{
        static void Main ()
        {
                for (int i = 0; i < 1000000; i++)
                        int k = i;
        }
}

Actual results:
mcshttp://bugzilla.ximian.com/show_bug.cgi?id=1.cs(8) error CS1002: Expecting `;'
Compilation failed: 1 error(s), 0 warnings

Expected results:
mcshttp://bugzilla.ximian.com/show_bug.cgi?id=1.cs(8) error CS1023: an embedded statement cannot be a declaration
or a labeled statement.



---- Additional Comments From bmaurer@users.sf.net 2004-03-28 20:43:58 MST ----

Created an attachment (id=165173)
patch




---- Additional Comments From bmaurer@users.sf.net 2004-03-28 20:45:01 MST ----

simple jay hackery.

baulig this is for you



---- Additional Comments From bmaurer@users.sf.net 2004-03-28 20:57:45 MST ----

in cvs.

Imported an attachment (id=165173)