Dechenjm / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

Hashmap iterators causes segfault #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When using a 'for (item :in map)' loop, a segfault is thrown because the last 
item might be null.

Add the following code to test/test_container_generics.crk to trigger:

HashMap[String, String] map = {};

map['key1'] = 'val1';
map['key2'] = 'val2';

cout `$map\n`;

Original issue reported on code.google.com by Conrad.S...@gmail.com on 27 May 2011 at 11:15

GoogleCodeExporter commented 9 years ago
Fixed in rev 6d7b6012b829

Original comment by mind...@gmail.com on 2 Jun 2011 at 10:58