http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60936
Bug ID: 60936 Summary: Binary code bloat with std::string Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: d.v.a at ngs dot ru Test program: #include<string> int hello() { std::string st("abc"); return st.length(); } Build: $ g++ -shared -fPIC -static-libgcc -static-libstdc++ -Wl,-s -o $@ $? Sizes of result: gcc-4_7-string.so: 171744 gcc-4_8-string.so: 185808 gcc-4_9-string.so: 635960