https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61863
Bug ID: 61863 Summary: Data corruption when creating temporary object Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mehta at roguewave dot com Created attachment 33163 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33163&action=edit ustrTst.cpp, MyUStr.h Hi, We are seeing data corruption with gcc 4.8. This problem happens when optimization is 03 or greater. It appears to occur when a temporary object is created using move constructor. Also, this problem doesn't happen with gcc 4.9. Compile and Link Line: ulimit -St 600 && g++ -m64 -msse3 -O3 -pthread --pedantic -Wall -W -Wno-long-long -std=gnu++11 -I. -c ustrTst.cpp ulimit -St 600 && g++ -m64 -pthread -o ustrTst ustrTst.o -lm -ldl I have attached the test case. Thanks, Vikas