id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 9035,"Coroutine test code should produce segmentation fault, but actually not.",anonymous,olli,"According to Boost Coroutine documentation, the following piece of code shall produce segmentation fault, since ""c""'s stack gets unwound and ""x"" should remain to be a nullptr, however ""x"" becomes non-null after the scoped coroutine code. I am not sure (since I am very new to Boost Coroutine lib) whether it is because of my mistake. My Boost 1.54 was compiled using Clang 3.3. I tested the code both using Clang 3.4 trunk and GCC 4.6.4. Thanks. =================================== #include struct X { void g() {} }; typedef boost::coroutines::coroutine coro_t; void fn(coro_t::caller_type& ca) { X local; ca(&local); } int main() { X* x = 0; { coro_t c(fn); x = c.get(); } x->g(); return 0; } ",Bugs,closed,To Be Determined,coroutine,Boost 1.54.0,Problem,invalid,,