[Mono-bugs] [Bug 334465] New: Unhandled exception when compiling attached code

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 17 03:49:47 EDT 2007


           Summary: Unhandled exception when compiling attached code
           Product: Mono: Compilers
           Version: 1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: rharinath at novell.com
        ReportedBy: slomo at circular-chaos.org
         QAContact: mono-bugs at ximian.com
          Found By: ---

gmcs 1.2.5 fails to compile the code at [0] with an unhandled exception:

$ gmcs null-ref.cs 

null-ref.cs(17,17): warning CS0219: The variable `foo' is assigned but its
value is never used

Unhandled Exception: System.NullReferenceException: A null value was found
where an object instance was required.
  at Mono.CSharp.ConstructedType..ctor (System.Type t,
Mono.CSharp.TypeParameter[] type_params, Location l) [0x00000] 
  at Mono.CSharp.TypeContainer.DoResolveType () [0x00000] 
  at Mono.CSharp.TypeContainer.ResolveType () [0x00000] 
  at Mono.CSharp.TypeContainer.ResolveType () [0x00000] 
  at Mono.CSharp.RootScopeInfo.LinkScopes () [0x00000] 
  at Mono.CSharp.ToplevelBlock.CompleteContexts (Mono.CSharp.EmitContext ec)
  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext
anonymous_method_host, Mono.CSharp.ToplevelBlock block, Mono.CSharp.Parameters
ip, IMethodData md, System.Boolean& unreachable) [0x00000] 
  at Mono.CSharp.EmitContext.EmitTopBlock (IMethodData md,
Mono.CSharp.ToplevelBlock block) [0x00000] 
  at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x00000] 
  at Mono.CSharp.Method.Emit () [0x00000] 
  at Mono.CSharp.TypeContainer.EmitType () [0x00000] 
  at Mono.CSharp.RootContext.EmitCode () [0x00000] 
  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000] 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] 

[0] http://launchpadlibrarian.net/10049343/null-ref.cs

Ubuntu bug for this: https://bugs.launchpad.net/ubuntu/+source/mono/+bug/153303

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list