зеркало из https://github.com/mono/mail-archives.git
132 строки
4.2 KiB
HTML
132 строки
4.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 483234] New: gmcs allows bad code when using automatic properties with structs
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20483234%5D%20New%3A%20gmcs%20allows%20bad%20code%20when%20using%0A%20automatic%20properties%20with%20structs&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="087442.html">
|
|
<LINK REL="Next" HREF="086823.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 483234] New: gmcs allows bad code when using automatic properties with structs</H1>
|
|
<B>bugzilla_noreply at novell.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20483234%5D%20New%3A%20gmcs%20allows%20bad%20code%20when%20using%0A%20automatic%20properties%20with%20structs&In-Reply-To="
|
|
TITLE="[Mono-bugs] [Bug 483234] New: gmcs allows bad code when using automatic properties with structs">bugzilla_noreply at novell.com
|
|
</A><BR>
|
|
<I>Sun Mar 8 08:35:58 EDT 2009</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="087442.html">[Mono-bugs] [Bug 483228] TextBox. Copy-Paste
|
|
</A></li>
|
|
<LI>Next message: <A HREF="086823.html">[Mono-bugs] [Bug 483234] gmcs allows bad code when using automatic properties with structs
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#86822">[ date ]</a>
|
|
<a href="thread.html#86822">[ thread ]</a>
|
|
<a href="subject.html#86822">[ subject ]</a>
|
|
<a href="author.html#86822">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=483234">https://bugzilla.novell.com/show_bug.cgi?id=483234</A>
|
|
|
|
|
|
Summary: gmcs allows bad code when using automatic properties
|
|
with structs
|
|
Classification: Mono
|
|
Product: Mono: Compilers
|
|
Version: 2.2.x
|
|
Platform: PowerPC
|
|
OS/Version: Mac OS X 10.5
|
|
Status: NEW
|
|
Severity: Major
|
|
Priority: P5 - None
|
|
Component: C#
|
|
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">jesjones at mindspring.com</A>
|
|
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
Found By: ---
|
|
|
|
|
|
Struct constructors are supposed to initialize all fields in the struct. If
|
|
this is not done error CS0171 is emitted. Csc does the same sort of thing for
|
|
the fields generated by automatic properties except that errors CS0188 and
|
|
CS0843 are emitted. But gmcs does not emit these errors.
|
|
|
|
This is a serious problem because the compiler allows code to be generated
|
|
which doesn't initialize all of the fields in the struct which means that, in
|
|
some cases at least, the fields have whatever value happened to be at their
|
|
memory address.
|
|
|
|
--
|
|
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
|
|
------- You are receiving this mail because: -------
|
|
You are the QA contact for the bug.
|
|
You are the assignee for the bug.
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="087442.html">[Mono-bugs] [Bug 483228] TextBox. Copy-Paste
|
|
</A></li>
|
|
<LI>Next message: <A HREF="086823.html">[Mono-bugs] [Bug 483234] gmcs allows bad code when using automatic properties with structs
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#86822">[ date ]</a>
|
|
<a href="thread.html#86822">[ thread ]</a>
|
|
<a href="subject.html#86822">[ subject ]</a>
|
|
<a href="author.html#86822">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|