------- Comment #3 from sam at quux dot dropbear dot id dot au 2006-03-21 14:59 ------- Sorry - I should have confirmed it on at least one other platform before submitting. So I've done so now!
Exactly the same behaviour occurs on a i386-redhat-linux host with gcc version 4.0.0 20050519 (Red Hat 4.0.0-8). Also confirmed on x86_64-pc-linux-gnu with an earlier version of gcc under Gentoo, gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8). I'd like to try it against a clean install of the latest stable gcc and libc versions, but unfortunately right now I do not have the time to set this up, nor to run through the actual libstdc++ source and see if I can spot what is going on. That the same buggy behaviour is exhibited on two different linux platforms, and across a series of gcc versions from 3.4.4 to 4.0.2, does point towards it being an actual libstdc++ bug though I think. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26777