------- Comment #4 from eric dot niebler at gmail dot com 2009-04-21 01:10 ------- I'm sorry to say that I no longer have access to the Linux machine on which I gcc-4.3 installed. I have only my windows laptop now, and I can't for the life of me get gcc-4.3 working under cygwin. I can, however, refer you to the original bug report, filed against a library in Boost:
https://svn.boost.org/trac/boost/ticket/2655 For reference, here is the source code (requires Boost to be in the path, but uses the header-only parts of Boost and so does not require you to build or link to any part of Boost). {{{ #include <string> #include <boost/xpressive/xpressive_static.hpp> using std::string; namespace xpr = boost::xpressive; int main() { string text = "at"; xpr::sregex r1 = xpr::as_xpr('a'); xpr::sregex r2 = 'b' >> r1; xpr::sregex r3 = r2 | r1; xpr::regex_replace(text, r3, string("")); return 0; } }}} -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509