Actions
Bug #10719
closedempty splatting literal hash after other keywords causes SEGV
Description
$ ruby -e 'foo(a: 1, **{})'
ruby: [BUG] Segmentation fault at 0x00000000000018
ruby 2.3.0dev (2015-01-09 trunk 49192) [universal.x86_64-darwin14]
Updated by nobu (Nobuyoshi Nakada) almost 10 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Applied in changeset r49193.
parse.y: eliminate empty hashes
- parse.y (assocs, assoc): eliminate splatting empty literal
hashes. [ruby-core:67446] [Bug #10719] - compile.c (compile_array_): supprt splatted hash in hash type.
Updated by naruse (Yui NARUSE) almost 10 years ago
- Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
ruby_2_2 r49302 merged revision(s) 49193.
Updated by shugo (Shugo Maeda) almost 10 years ago
- Related to Bug #10856: Splat with empty keyword args gives unexpected results added
Actions
Like0
Like0Like0Like0