Raised issue #7908 on bugs.ruby-lang.org.