http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52477
--- Comment #2 from Pawel Sikora <pluto at agmk dot net> 2012-03-04 14:16:29 UTC --- you should specify explicit initialization order to avoid gpf, e.g.: static std::map<int, int> m __attribute__((init_priority(101))); static void insert() __attribute__((constructor(102)));