funky icon indicating copy to clipboard operation
funky copied to clipboard

Compiler crashes if a keyword is used as an identifier

Open fmease opened this issue 5 years ago • 0 comments

If you use keywords (func, alias, record, union) in places where identifiers are expected, the compiler does not give a reasonable report but crashes. Faulty inputs might look like:

alias A = alias, record union or func func : Int = 0.

The crashes are caused by nil pointer dereferences.

fmease avatar Apr 12 '19 10:04 fmease