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

https://bugzilla.novell.com/show_bug.cgi?id=684600#c2


--- Comment #2 from scott fluto <[email protected]> 2011-04-01 20:51:36 UTC 
---
I finally get a reproducable test. I had to move the test classes to its own
assembly from some reason to get this to happen. So, using the attached files,
test1.cs,test1base.cs and the new Main.cs executing the following commands will
generate the error which should work as it passes in windows. Now my above
comments reference the problem code.

gmcs /out:testingproject.dll /target:library test1.cs test1base.cs
gmcs /reference:testingproject.dll Main.cs  

Note that changing line 1185 in the mcs/mcs/import.cs 
from:
if ((ma & MethodAttributes.Virtual) != 0 && !declaringType.IsSealed) {
to:
if ((ma & MethodAttributes.Virtual) != 0) {

seems to fix the problem. the check for IsSealed on the declaringtype doesnt
seem to make sense in this context anyhow but I could be wrong.

thanks

scott

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to