Unhandled exception in gmcs

Bug #153303 reported by Test-tools
2
Affects Status Importance Assigned to Milestone
mono
Fix Released
Medium
mono (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

gmcs crashes with attached test-case, Microsoft compiler compiles it, the symptom:

roland@Vista:~/svn/mcs/tests$ /usr/bin/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) [0x00000]
  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]
roland@Vista:~/svn/mcs/tests$

Revision history for this message
Test-tools (roland-verifysoft) wrote :
Changed in mono:
status: Unknown → Confirmed
Changed in mono:
status: Confirmed → In Progress
Changed in mono:
status: In Progress → Fix Released
Revision history for this message
Jo Shields (directhex) wrote :

Still present in 1.9.1 (Intrepid), will be fixed in post-Intrepid releases

Changed in mono:
status: New → Confirmed
Revision history for this message
Jo Shields (directhex) wrote :

Fixed in Jaunty

Changed in mono:
status: Confirmed → Fix Released
Changed in mono:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.