scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
232 stars 21 forks source link

Compiler throws a Stack overflow error #4743

Closed scabug closed 13 years ago

scabug commented 13 years ago

Received this error:

error: java.lang.StackOverflowError at scala.tools.nsc.symtab.Symbols$Symbol.name(Symbols.scala:642) at scala.tools.nsc.symtab.Symbols$TermSymbol.name(Symbols.scala:1743) at scala.tools.nsc.symtab.Symbols$TermSymbol.name(Symbols.scala:1739) at scala.tools.nsc.symtab.Symbols$Symbol.isConstructor(Symbols.scala:353) at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:547) at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:574) at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:574) at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:574) at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:574) at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:574) at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:574)

From this code which uses parboiled 0.11

============= Code starts here ========================= package net.exaxis.compilererror

import org.parboiled.scala._ import java.lang.String

/**

scabug commented 13 years ago

Imported From: https://issues.scala-lang.org/browse/SI-4743?orig=1 Reporter: Dave Berry (david.e.berry-at-verizon.net) Affected Versions: 2.9.0

scabug commented 13 years ago

@paulp said: Declare the type of BaseChar, and/or add more stack.