1

Closed

Compilation error on Phalanger 4

description

Error 31 Internal error!
Please, report this bug via http://phalanger.codeplex.com/workitem/list/basic.
Additional information:
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at System.String.Format(String format, Object arg0, Object arg1)
at PHP.Core.CodeGenerator.EmitNamingContext(Nullable1 currentNamespace, Dictionary2 currentAliases, Int32 position)
at PHP.Core.CodeGenerator.EmitEval(EvalKinds kind, Expression code, Span span, Nullable1 currentNamespace, Dictionary2 currentAliases)
at PHP.Core.Compiler.AST.NodeCompilers.TypeDeclCompiler.EmitDefinition(CodeGenerator codeGenerator)
at PHP.Core.Compiler.AST.NodeCompilers.TypeDeclCompiler.Emit(TypeDecl node, CodeGenerator codeGenerator)
at PHP.Core.Compiler.AST.NodeCompilers.StatementCompiler1.PHP.Core.Compiler.AST.IStatementCompiler.Emit(Statement node, CodeGenerator codeGenerator)
at PHP.Core.Compiler.AST.NodeCompilers.NamespaceDeclCompiler.Emit(NamespaceDecl node, CodeGenerator codeGenerator)
at PHP.Core.Compiler.AST.NodeCompilers.StatementCompiler
1.PHP.Core.Compiler.AST.IStatementCompiler.Emit(Statement node, CodeGenerator codeGenerator)
at PHP.Core.Compiler.AST.NodeCompilers.GlobalCodeCompiler.Emit(GlobalCode ast, CodeGenerator codeGenerator)
at PHP.Core.Reflection.CompilationSourceUnit.Emit(CodeGenerator codeGenerator)
at PHP.Core.Reflection.InclusionGraphBuilder.EmitAllUnits(CodeGenerator codeGenerator)
at PHP.Core.Emit.ScriptAssemblyBuilder.CompileScripts(IEnumerable1 sourceFiles, CompilationContext context)
at PHP.Core.Emit.ScriptAssemblyBuilder.Build(IEnumerable
1 sourceFiles, CompilationContext context)
at PHP.Core.ApplicationCompiler.Compile(ApplicationContext applicationContext, CompilerConfiguration config, ErrorSink errorSink, CompilationParameters ps)
    -1  -1  WebApplication3
Closed Apr 30, 2014 at 11:10 PM by jakub
Thanks! The fix will be available within the next release

comments