Bug 318846 (MONO75935) - mcs emits a branch from a try block
Summary: mcs emits a branch from a try block
Status: RESOLVED MOVED
Alias: MONO75935
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 14:08 UTC by Jain Ankit
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 19:29:00 UTC


---- Reported by jankit@novell.com 2005-08-30 07:08:02 MST ----

Test case:

using System;

class test
{
        public static void Main (string [] args)
        {
                try {
                        goto abc;
                }catch {
                }

        abc:
                Console.WriteLine ("At abc..");
        }
}

mcs, then monodis:
<snip>
        .maxstack 2
        .try { // 0
          IL_0000:  br IL_0010 --> branch !!

          IL_0005:  leave IL_0010

        } // end .try 0
        catch [mscorlib]System.Object { // 0
          IL_000a:  pop
          IL_000b:  leave IL_0010

        } // end handler 0
        IL_0010:  ldstr "At abc.."

<snip>



---- Additional Comments From martin@ximian.com 2006-03-22 08:24:25 MST ----



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


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"