https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66530
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jennifer Yao from comment #0) > My hypothesis (and please correct me if I'm wrong) is that the libstdc++ > that is being loaded at runtime is the preexisting (unaltered/unpatched) > library in the install tree, rather than the altered/patched library in the > build tree. If that's true it must be a cygwin problem, as it doesn't happen for other targets. All testing should be done against the build tree, and that's what happens for me. Does the /cygdrive/c/Users/yaoj3/Code/gcc/build/trunk/x86_64-pc-cygwin/./libstdc++-v3/src/.libs directory in the LD_LIBRAY_PATH contain the libstdc++.so.6 library?