Issue #14627 has been updated by mrkn (Kenta Murata).


I cannot reproduce it on the HEAD of ruby_2_5:

```
$ ruby -ve 'Class.new.class_eval "def foo(a:, N:)\nend"'
ruby 2.5.1p53 (2018-03-25 revision 62911) [x86_64-darwin16]
Traceback (most recent call last):
    1: from -e:1:in `<main>'
-e:1:in `class_eval': (eval):1: formal argument cannot be a constant (SyntaxError)
def foo(a:, N:)
            ^~
(eval):1: dynamic constant assignment
def foo(a:, N:)
              ^
```


----------------------------------------
Bug #14627: class_eval "def foo(N:)\n end" regression
https://bugs.ruby-lang.org/issues/14627#change-71281

* Author: ViugiNick (Nickolay Viuginov)
* Status: Feedback
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.5.0
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
Ruby crashes with a segfault in case of `class_eval` defining method with a keyword starts with a capital letter. It seems like it's a regression of one of the latest versions.

---Files--------------------------------
Screenshot from 2018-03-21 18-15-09.png (133 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>