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


           Summary: error in signatures to vararg functions
           Product: Mono: Tools
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: ilasm
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


Created an attachment (id=196978)
 --> (https://bugzilla.novell.com/attachment.cgi?id=196978)
il file that does not compile properly with ilasm

when a vararg function is called multiple times with arguments with different
types after the ellipsis, the generated assembly is broken
all calls to the function have the same signature, the first one encountered

it seems to me that there is some caching done using the signature as the key
(extracted as a string with CreateSignature)
I looked at GetGlobalMethodRef

but CreateVarargSignature uses only the types till the ellipsis
and so the caching does not work properly

in the attached example test2.il,
if we use monodis on the output of ilasm we can see that the second call to
myvararg is broken


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