[Mono-bugs] [Bug 28194][Blo] Changed - When calling sizeof(string) mono gets a Trace/breakpoint trap
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
25 Jul 2002 16:38:06 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=28194
--- shadow/28194 Thu Jul 25 12:24:59 2002
+++ shadow/28194.tmp.17298 Thu Jul 25 12:38:06 2002
@@ -1,16 +1,16 @@
Bug#: 28194
-Product: Mono/Runtime
+Product: Mono/MCS
Version: unspecified
OS: GNU/Linux [Other]
OS Details: debian sid with alp cvs packages
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Blocker
-Component: misc
+Component: Misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: kiwnix@yahoo.es
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
@@ -45,6 +45,13 @@
none (get in a the size of a string)
How often does this happen?
Allways
+
+------- Additional Comments From lupus@ximian.com 2002-07-25 12:38 -------
+This is really a mcs bug, it should not compile that code, first,
+because it allows the use of sizeof without the /unsafe keyword
+and next because it allows the use of sizeof on a reference type (it
+should allow it only on valuetypes).
+The jit should either trow an exception or return sizeof(void*), though.