https://bugzilla.novell.com/show_bug.cgi?id=483234


           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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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: 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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to