[Mono-dev] HEADS UP: Linear IR branch merge

"Andrés G. Aragoneses" knocte at gmail.com
Mon Jul 28 06:02:23 EDT 2008


Andrés G. Aragoneses wrote:
> Zoltan Varga wrote:
>> [...]
>> In case anyone wants to revert their tree to before the merge, the before merge
>> revision is  r108475.
> 
> (Just FYI)
> It's a shame because, at that revision, there's an mcs bug that prevents 
> you from compiling MonoDevelop:
> 
> Exception caught by the compiler while compiling:
>     Block that caused the problem begin at: 
> ./MonoDevelop.SourceEditor/SourceEditorWidget.cs(253,22):
>                       Block being compiled: 
> [./MonoDevelop.SourceEditor/SourceEditorWidget.cs(269,64):,./MonoDevelop.SourceEditor/SourceEditorWidget.cs(278,25):]
> System.InvalidCastException: Cannot cast from source type to destination 
> type.
> Internal compiler error at 
> ./MonoDevelop.SourceEditor/SourceEditorWidget.cs(253,22):: exception 
> caught while emitting MethodBuilder [SourceEditorWidget::AddClass]
> 
> Unhandled Exception: System.InvalidCastException: Cannot cast from 
> source type to destination type.
>    at Mono.CSharp.ConstantFold.BinaryFold (Mono.CSharp.EmitContext ec, 
> Operator oper, Mono.CSharp.Constant left, Mono.CSharp.Constant right, 
> Location loc) [0x00000]
>    at Mono.CSharp.Binary.DoResolve (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, 
> ResolveFlags flags) [0x00000]
>    at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.Binary.DoResolve (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, 
> ResolveFlags flags) [0x00000]
>    at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.Expression.ResolveBoolean (Mono.CSharp.EmitContext ec, 
> Mono.CSharp.Expression e, Location loc) [0x00000]
>    at Mono.CSharp.If.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.ExplicitBlock.Resolve (Mono.CSharp.EmitContext ec) 
> [0x00000]
>    at Mono.CSharp.Foreach+CollectionForeachStatement.Resolve 
> (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.While.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.Foreach+CollectionForeach.ResolveLoop 
> (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.Foreach+CollectionForeach+DisposableWrapper.Resolve 
> (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.Foreach+CollectionForeach.Resolve 
> (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.Foreach.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.ExplicitBlock.Resolve (Mono.CSharp.EmitContext ec) 
> [0x00000]
>    at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
>    at Mono.CSharp.ExplicitBlock.Resolve (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]
> 
> 
> I'll see if it's fixed in SVN...

Arghh, same issue with gmcs from SVN. Marek, are you already aware of 
this issue or do you want me to file a bug..?

Thanks,

	Andrés

-- 



More information about the Mono-devel-list mailing list