I also encountered similar situation where make_shared<> crashes but casting through new works. Note that make_shared<> worked for object of another class. Attached file.
g++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 Linux jeeves 3.8.0-25-generic #37-Ubuntu SMP Thu Jun 6 20:47:07 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux g++ -c -I/usr/local/include -I ../include -std=c++11 EventWheel.cpp ** Attachment added: "ccDenxuK.out" https://bugs.launchpad.net/ubuntu/+source/gcc-4.7/+bug/1165732/+attachment/3717144/+files/ccDenxuK.out -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1165732 Title: GCC 4.7.3 internal compiler error when using std::make_shared To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/1165732/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs