[Mono-bugs] [Bug 460847] New: Crash in LINQ statement #2

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Dec 19 12:24:09 EST 2008


           Summary: Crash in LINQ statement #2
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Xml.Linq;

class Pair <A, B>
        public A a;
        public B b;

class C {
        private static readonly Func<string, string, bool>[] Skip = 
            (s, t) => (s == "A" || s == "B") && t == "T",

        private void Main ()
            IEnumerable<FieldInfo> firstProperties = null;
            IEnumerable<FieldInfo>  secondProperties = null;
            var v = 
                from first in firstProperties
                from second in secondProperties
                where !Skip.Any (sc => sc(first.Name, second.Name))
                select new Pair<string, string>("", "");

gmcs -test.cs -r:System.Xml.Linq.dll produces the attached output.

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.

More information about the mono-bugs mailing list