[Mono-bugs] [Bug 412595] New: Exception in gmcs: System.InvalidCastException: Cannot cast from source type to destination type.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jul 28 07:12:42 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=412595
Summary: Exception in gmcs: System.InvalidCastException: Cannot
cast from source type to destination type.
Product: Mono: Compilers
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: aaragoneses at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Steps to reproduce:
1. Get gmcs from SVN (I have r108978 now).
1. Checkout rev 108932 of monodevelop.
2. Compile it.
Current results:
make[4]: Entering directory
`/home/knocte/Documents/iDocs/Proyectos/a11ymono/monodevelop/main/src/addins/MonoDevelop.SourceEditor2'
mkdir -p ../../../build/bin
/home/knocte/opt/mono/bin/gmcs -debug -codepage:utf8
/resource:./gtk-gui/gui.stetic /resource:./gtk-gui/objects.xml
/resource:./MonoDevelop.SourceEditor.addin.xml ./AssemblyInfo.cs
/gtk-gui/generated.cs
/gtk-gui/MonoDevelop.SourceEditor.GotoLineNumberWidget.cs
/gtk-gui/MonoDevelop.SourceEditor.OptionPanels.BehaviorPanel.cs
/gtk-gui/MonoDevelop.SourceEditor.OptionPanels.GeneralOptionsPanel.cs
/gtk-gui/MonoDevelop.SourceEditor.OptionPanels.HighlightingPanel.cs
/gtk-gui/MonoDevelop.SourceEditor.OptionPanels.MarkerPanel.cs
/gtk-gui/MonoDevelop.SourceEditor.SearchAndReplaceWidget.cs
/gtk-gui/MonoDevelop.SourceEditor.SearchWidget.cs
/gtk-gui/MonoDevelop.SourceEditor.SourceEditorWidget.cs
/MonoDevelop.SourceEditor.OptionPanels/BehaviorPanel.cs
/MonoDevelop.SourceEditor.OptionPanels/GeneralOptionsPanel.cs
/MonoDevelop.SourceEditor.OptionPanels/HighlightingPanel.cs
/MonoDevelop.SourceEditor.OptionPanels/MarkerPanel.cs
/MonoDevelop.SourceEditor/CompileErrorTooltipProvider.cs
/MonoDevelop.SourceEditor/DebugValueTooltipProvider.cs
/MonoDevelop.SourceEditor/DebugValueWindow.cs
/MonoDevelop.SourceEditor/EditActions.cs
/MonoDevelop.SourceEditor/ExtendibleTextEditor.cs
/MonoDevelop.SourceEditor/GotoLineNumberWidget.cs
/MonoDevelop.SourceEditor/HighlightPropertiesSemanticRule.cs
/MonoDevelop.SourceEditor/LanguageItemTooltipProvider.cs
/MonoDevelop.SourceEditor/LanguageItemWindow.cs
/MonoDevelop.SourceEditor/MarkerOperationsHandler.cs
/MonoDevelop.SourceEditor/SearchAndReplaceWidget.cs
/MonoDevelop.SourceEditor/SearchWidget.cs
/MonoDevelop.SourceEditor/SourceEditorCommands.cs
/MonoDevelop.SourceEditor/SourceEditorDisplayBinding.cs
/MonoDevelop.SourceEditor/SourceEditorOptions.cs
/MonoDevelop.SourceEditor/SourceEditorView.cs
/MonoDevelop.SourceEditor/SourceEditorWidget.cs
-out:../../../build/AddIns/MonoDevelop.SourceEditor2.dll -t:library
-r:/home/knocte/opt/mono/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/glib-sharp.dll
-r:/home/knocte/opt/mono/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/pango-sharp.dll
-r:/home/knocte/opt/mono/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/atk-sharp.dll
-r:/home/knocte/opt/mono/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/gdk-sharp.dll
-r:/home/knocte/opt/mono/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/gtk-sharp.dll
-r:/home/knocte/opt/mono/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/glib-sharp.dll
-r:/home/knocte/opt/mono/lib/mono/mono-addins/Mono.Addins.dll
-r:../../../build/AddIns/MonoDevelop.Debugger/MonoDevelop.Debugger.dll
-r:../../../build/AddIns/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.dll
-r:../../../build/bin/Mono.Debugging.dll
-r:../../../build/bin/Mono.TextEditor.dll
-r:../../../build/bin/MonoDevelop.Components.dll
-r:../../../build/bin/MonoDevelop.Core.dll
-r:../../../build/bin/MonoDevelop.Core.Gui.dll
-r:../../../build/bin/MonoDevelop.Ide.dll
-r:../../../build/bin/MonoDevelop.Projects.dll
-r:../../../build/bin/MonoDevelop.Projects.Gui.dll -r:Mono.Cairo -r:Mono.Posix
-r:System -r:System.Xml
/MonoDevelop.SourceEditor/SourceEditorWidget.cs(58,17): warning CS0612:
`Gtk.Tooltips' is obsolete
/MonoDevelop.SourceEditor/SourceEditorWidget.cs(58,37): warning CS0612:
`Gtk.Tooltips' is obsolete
/MonoDevelop.SourceEditor/SourceEditorWidget.cs(170,30): warning CS0612:
`Gtk.Tooltips' is obsolete
/MonoDevelop.SourceEditor/SourceEditorWidget.cs(176,30): warning CS0612:
`Gtk.Tooltips' is obsolete
/MonoDevelop.SourceEditor/SourceEditorWidget.cs(181,30): warning CS0612:
`Gtk.Tooltips' is obsolete
/MonoDevelop.SourceEditor/SourceEditorWidget.cs(243,29): warning CS0472: The
result of comparing `MonoDevelop.Projects.Dom.DomRegion' against null is always
`false'. This operation is undocumented and it is temporary supported for
compatibility reasons only
/MonoDevelop.SourceEditor/SourceEditorWidget.cs(257,32): warning CS0472: The
result of comparing `MonoDevelop.Projects.Dom.IMember.BodyRegion' against null
is always `true'. This operation is undocumented and it is temporary supported
for compatibility reasons only
/MonoDevelop.SourceEditor/SourceEditorWidget.cs(270,44): warning CS0472: The
result of comparing `MonoDevelop.Projects.Dom.IMember.Location' against null is
always `false'. This operation is undocumented and it is temporary supported
for compatibility reasons only
/MonoDevelop.SourceEditor/SourceEditorWidget.cs(270,71): warning CS0472: The
result of comparing `MonoDevelop.Projects.Dom.IMember.BodyRegion' against null
is always `false'. This operation is undocumented and it is temporary supported
for compatibility reasons only
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]
make[4]: *** [../../../build/AddIns/MonoDevelop.SourceEditor2.dll] Error 1
make[4]: Leaving directory
`/home/knocte/Documents/iDocs/Proyectos/a11ymono/monodevelop/main/src/addins/MonoDevelop.SourceEditor2'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/knocte/Documents/iDocs/Proyectos/a11ymono/monodevelop/main/src/addins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/knocte/Documents/iDocs/Proyectos/a11ymono/monodevelop/main/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/knocte/Documents/iDocs/Proyectos/a11ymono/monodevelop/main'
make: *** [all-recursive] Error 1
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list