http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58366
Bug ID: 58366 Summary: thread_local class containing bound function leads to : "Illegal instruction: 4" Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jbcoe at me dot com Created attachment 30768 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30768&action=edit small program illustrating crash I've struggled to pare this bug down to a smaller example but noticed that invocation of a thread_local random number generating functor in GCC 4.8.1 caused a regular, though not always reproducible, crash that I did not see in Clang 3.3. Both thread_local and use of std::bind seem to be necessary to reproduce the crash. Code was compiled with -std=c++11