http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59895
--- Comment #1 from Aleksandr Dobkin <adob321 at gmail dot com> --- Output I get is: S1() called S1() globalvec.size() = 1 main globalvec.size() = 0 tested with g++-4.8 (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1