> I have provided the trace that is withing the istream.tcc file of libstdc++ > and not of my code. > I cannot post the code for legal reasons. You could try to reduce the problem to a small test case that you can post. If you are unable to do this, it is unlikely that your bug will be found and fixed. Do you get the same behavior if you turn off optimization?