rather daft code crashes compiler

41 views
Skip to first unread message

rtm...@googlemail.com

unread,
Jun 16, 2016, 4:11:48 PM6/16/16
to scala-user
Don't know if anyone cares about this, or should care, but

val q = List(1)
q.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force.view.force

bombs with the rather nice "That entry seems to have slain the compiler". Stack overflow related to tail call elimination it seems.

Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_65) running on windows 2008 R2

FYI

cheers

jan

Oliver Ruebenacker

unread,
Jun 16, 2016, 4:26:53 PM6/16/16
to rtm...@googlemail.com, scala-user

     Hello,

  The stacktrace indicates that it is the typer that crashes. Can get the same error with

  List(1).toSet.toSet. ... .toSet
 
     Best, Oliver

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Oliver Ruebenacker
Senior Software Engineer, Diabetes Portal, Broad Institute

rtm...@googlemail.com

unread,
Jun 20, 2016, 2:04:35 PM6/20/16
to scala-user, rtm...@googlemail.com
Hi Oliver,
worthy of a bug report, you think?

cheers

jan
Reply all
Reply to author
Forward
0 new messages