[Mono-bugs] [Bug 630911] New: gmcs crashes when declaring a nullable instance of a generic struct

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 12 23:02:24 EDT 2010



           Summary: gmcs crashes when declaring a nullable instance of a
                    generic struct
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.6.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: alexander.corrado at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=382717)
 --> (http://bugzilla.novell.com/attachment.cgi?id=382717)
Full output including stacktrace

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv: Gecko/20100722 Firefox/3.6.8

It appears that declaring an instance of a generic struct as nullable causes
gmcs to crash. Using gmcs from mono 2.6.7 release.

Reproducible: Always

Steps to Reproduce:
1. Try to compile the test case with gmcs.
Actual Results:  
Crash. Full output attached.

Expected Results:  
No crash.

Test case:

using System;

namespace Test {

    public struct NameTypePair<TType> {

        public NameTypePair (string foo)

    public class Test {
        public static void Main (string [] args)
            NameTypePair<Type>? fooBar;

Configure bugmail: http://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.

More information about the mono-bugs mailing list