Scala Programming Language
  1. Scala Programming Language
  2. SI-6888

Inner object called $ causes compiler crash

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0-M3, Scala 2.10.0-RC5
    • Fix Version/s: Scala 2.10.1
    • Component/s: Compiler Backend
    • Environment:

      Description

      Compiling the following is enough to cause the compiler to crash:

      class X { object $ }
      

      Full stack trace from Scala 2.10.0-RC5 attached.

        Issue Links

          Activity

          Hide
          Jon Pretty added a comment -

          Incidentally,

          class X { object ☹ }
          

          works just fine...

          But seriously, given that a) this is really really easy to reproduce and b) a compiler crash surely can't be the right answer, can we reopen the issue until someone is prepared to fix it?

          Show
          Jon Pretty added a comment - Incidentally, class X { object ☹ } works just fine... But seriously, given that a) this is really really easy to reproduce and b) a compiler crash surely can't be the right answer, can we reopen the issue until someone is prepared to fix it?
          Hide
          Paul Phillips added a comment -

          Yes, a compiler crash is never the right answer.

          Show
          Paul Phillips added a comment - Yes, a compiler crash is never the right answer.
          Show
          Jason Zaugg added a comment - https://github.com/scala/scala/pull/2069
          Hide
          James Iry added a comment -

          Leaving open for the broader issue of name hygiene

          Show
          James Iry added a comment - Leaving open for the broader issue of name hygiene
          Hide
          James Iry added a comment -

          NVM, SI-2806 covers that

          Show
          James Iry added a comment - NVM, SI-2806 covers that

            People

            • Assignee:
              Jason Zaugg
              Reporter:
              Jon Pretty
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development