[Mono-bugs] [Bug 457339] New: Mono 2.2 Preview 2 Compiers barfs on certain Linq query

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 8 13:28:01 EST 2008


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


           Summary: Mono 2.2 Preview 2 Compiers barfs on certain Linq query
           Product: Mono: Compilers
           Version: 2.2.x
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dans at houmus.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User


The following Linq Query works:

        var pats = new List<Regex>();
        pats.Add(new Regex("^.*\.bz2$"));

        var selectedFiles = FileSystemWalker.Walk(baseDir).Where(f =>
pats.Any(r => r.IsMatch(f)));

While the more "query oriented" Linq query produces the attached compiler crash
report.

var pats = new List<Regex>();
pats.Add(new Regex("^.*\.bz2$"));:q
var selectedFiles = from f in FileSystemWalker.Walk(baseDir)
                    where pats.Any((re) => re.IsMatch(f))
                    select f;

I'm using Mono 2.2 Preview 2.2 built from source code...


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