Project

General

Profile

Actions

Bug #17572

closed

coerceで作成した(0.0/1)を計算に用いるとコアダンプする

Added by freedom (free dom) about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
[ruby-dev:50994]

Description

coerceで(0.0/1)等の値を作成することができ、こちらを計算に使用するとコアダンプして落ちます(出力は添付参照)

再現コード

1/0r.coerce(0.0+0i)[0]

よろしくおねがいします


Files

coredump (19 KB) coredump freedom (free dom), 01/22/2021 11:55 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0