Public bug reported:

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

[EMAIL PROTECTED]:~/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]
[EMAIL PROTECTED]:~/svn/mcs/tests$

** Affects: mono (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Unhandled exception in gmcs
https://bugs.launchpad.net/bugs/153303
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to