{"action":"closed","issue":{"url":"https://api.github.com/repos/fasterthanlime/rock/issues/906","labels_url":"https://api.github.com/repos/fasterthanlime/rock/issues/906/labels{/name}","comments_url":"https://api.github.com/repos/fasterthanlime/rock/issues/906/comments","events_url":"https://api.github.com/repos/fasterthanlime/rock/issues/906/events","html_url":"https://github.com/fasterthanlime/rock/issues/906","id":94547321,"number":906,"title":"Malformed function definition may crash the compiler","user":{"login":"zhaihj","id":1991933,"avatar_url":"https://avatars.githubusercontent.com/u/1991933?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaihj","html_url":"https://github.com/zhaihj","followers_url":"https://api.github.com/users/zhaihj/followers","following_url":"https://api.github.com/users/zhaihj/following{/other_user}","gists_url":"https://api.github.com/users/zhaihj/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaihj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaihj/subscriptions","organizations_url":"https://api.github.com/users/zhaihj/orgs","repos_url":"https://api.github.com/users/zhaihj/repos","events_url":"https://api.github.com/users/zhaihj/events{/privacy}","received_events_url":"https://api.github.com/users/zhaihj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/fasterthanlime/rock/milestones/12","html_url":"https://github.com/fasterthanlime/rock/milestones/0.9.11","labels_url":"https://api.github.com/repos/fasterthanlime/rock/milestones/12/labels","id":1203804,"number":12,"title":"0.9.11","description":"codename \"sapporo\"","creator":{"login":"fasterthanlime","id":7998310,"avatar_url":"https://avatars.githubusercontent.com/u/7998310?v=3","gravatar_id":"","url":"https://api.github.com/users/fasterthanlime","html_url":"https://github.com/fasterthanlime","followers_url":"https://api.github.com/users/fasterthanlime/followers","following_url":"https://api.github.com/users/fasterthanlime/following{/other_user}","gists_url":"https://api.github.com/users/fasterthanlime/gists{/gist_id}","starred_url":"https://api.github.com/users/fasterthanlime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fasterthanlime/subscriptions","organizations_url":"https://api.github.com/users/fasterthanlime/orgs","repos_url":"https://api.github.com/users/fasterthanlime/repos","events_url":"https://api.github.com/users/fasterthanlime/events{/privacy}","received_events_url":"https://api.github.com/users/fasterthanlime/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-07-12T09:47:57Z","updated_at":"2015-07-12T09:50:08Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-07-12T08:32:12Z","updated_at":"2015-07-12T09:50:08Z","closed_at":"2015-07-12T09:50:08Z","body":"When trying to compile the following code:\r\n```ooc\r\nbar: class{\r\n    init: func\r\n\r\n    foo: func ~suffix \r\n\r\n    func(test: Int){\r\n    }\r\n}\r\n```\r\n\r\nrock crashes, because `func(test: Int)` is recognized as a function definition but it doesn't have a valid name.\r\n\r\n\r\n\r\n```\r\n(SIGSEGV) segmentation fault\r\n[lang/Backtrace] Falling back on execinfo.. (build extension if you want fancy backtraces)\r\nrock(lang_Backtrace__BacktraceHandler_backtrace_impl+0xe0) [0x56c6e0]\r\nrock(lang_Exception__Exception_getCurrentBacktrace+0x13) [0x557883]\r\nrock(lang_Exception___signalHandler+0x124) [0x5579d4]\r\n/usr/lib/libc.so.6(+0x335b0) [0x7fc6317635b0]\r\nrock(rock_middle_TypeDecl__TypeDecl_underName+0) [0x4cb620]\r\nrock(rock_backend_cnaughty_ClassDeclWriter__ClassDeclWriter_writeInstanceVirtualFuncs+0x115) [0x5203a5]\r\nrock(rock_backend_cnaughty_ClassDeclWriter__ClassDeclWriter_write__class+0x126) [0x521656]\r\nrock(rock_backend_cnaughty_ModuleWriter__ModuleWriter_write+0x86f) [0x5240ff]\r\nrock(rock_backend_cnaughty_CGenerator__CGenerator_write_impl+0x16) [0x51b766]\r\nrock(rock_frontend_drivers_SequenceDriver__SequenceDriver_generateSources_impl+0x83) [0x529bb3]\r\nrock(rock_frontend_drivers_SequenceDriver__SequenceDriver_compile_impl+0x12e) [0x52964e]\r\nrock(rock_frontend_CommandLine____rock_frontend_CommandLine_rock_frontend_CommandLine_closure325_thunk+0x1f) [0x49ce3f]\r\nrock(os_Time__Time_measure+0x86) [0x565716]\r\nrock() [0x49d6e2]\r\nrock(rock_frontend_CommandLine__CommandLine_parse_impl+0x16b) [0x49d4cb]\r\nrock(rock_frontend_CommandLine__CommandLine_init+0x87e) [0x49e8de]\r\nrock(rock_frontend_CommandLine__CommandLine_new+0x5e) [0x4a073e]\r\nrock(main+0xa2) [0x49cc12]\r\n/usr/lib/libc.so.6(__libc_start_main+0xf0) [0x7fc631750790]\r\nrock(_start+0x29) [0x49cc49]\r\n```"}}