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


           Summary: Incorrect code generated for 'const double'
                    declaration
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.2.x
          Platform: 32bit
        OS/Version: openSUSE 11.1
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


Created an attachment (id=272601)
 --> (https://bugzilla.novell.com/attachment.cgi?id=272601)
zipped Monodevelop test solution

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.6)
Gecko/2009011913 Firefox/3.0.6

the declaration const double largeClip = 100.0; generates a constant with value
-100.0.  A similar declaration on the following line generates the correct
constant.



Reproducible: Always

Steps to Reproduce:
1.Extract the Monodevelop solution from the attached zip file.
2.Run the test - value of constants is printed out
3.
Actual Results:  
should print prop:0.1, largeClip:100, smallClip:100

Expected Results:  
prints prop:0.1, largeClip:-100, smallClip:100

I could not reproduce the error if the example is reduced further - but it is
consistent for the files enclosed. The dissassembled code is attached (bin
directory) which just shows the incorrect constant being generated, just before
the correct one.  The Console.WriteLine statement is in the
Axis.WorldToPhysical method.  Error occurs for mcs and gmcs

-- 
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