[nem-bug] [Nemerle 0000774]: Internal compiler error

feedback at nemerle.org feedback at nemerle.org
Mon Oct 2 05:05:52 CEST 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=774> 
======================================================================
Reported By:                IT
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   774
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             10-02-2006 05:05 CEST
Last Modified:              10-02-2006 05:05 CEST
======================================================================
Summary:                    Internal compiler error
Description: 
Command line:

ncc test.n /ref:Nemerle.Compiler.dll

Source code:

using System;

using Nemerle.Compiler;
using Nemerle.Compiler.Parsetree;

namespace Nemerle.Completion2
{
  delegate AddHiddenRegion(location : Location, isExpanded : bool) :
void;

  class Project
  {
    public Check(addHiddenRegion : AddHiddenRegion) : void
    {
      def processBuilder(builder)
      {
        foreach (member in builder.GetDirectMembers())
        {
        | method is MethodBuilder =>

          ExprWalker().Walk(null, fun(expr : PExpr)
          {
          | DefFunctions(funs) =>

            funs.Iter(fun(decl)
            {
              addHiddenRegion(decl.body.Location, true);
            });

          });
        }
      }

      def decls : list[Decl] = [];

      foreach (decl in decls)
      {
      | Decl.Type(builder) => processBuilder(builder)
      }
    }
  }
}

variant Decl
{
  | Type { Builder : TypeBuilder; }
}

delegate PExprWalkHandler(expression : PExpr) : void;

class ExprWalker
{
  public Walk(expression : PExpr, walkHandler : PExprWalkHandler) : void
  {
  }
}
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
10-02-06 05:05 IT             New Issue                                    
======================================================================




More information about the bugs mailing list