This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36863] New: TR1 regex with GCC 4.3.0 on cygwin
- From: "christopher dot kormanyos at al-lighting dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2008 11:17:38 -0000
- Subject: [Bug c++/36863] New: TR1 regex with GCC 4.3.0 on cygwin
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
We can not successfully use std::tr1::regex functionality with GCC 4.3.0 on
i686-pc-cygwin. Even the simplest of match expressions can not be successfully
matched. Perhaps there is a user error on our side here (sorry if this is the
case). Perhaps there is an actual compiler issue here.
The following code does not successfully match. It compiles but gives a
unexpectedly false match. The code compiles and runs with VC9 + FeaturePack.
#include <iostream>
#include <iomanip>
#include <string>
#if defined(__GNUC__)
#include <tr1/regex>
#else
#include <regex>
#endif
int main(void)
{
static const std::tr1::regex rx_hello("hello");
static const std::string str_hello("hello");
std::cout << std::boolalpha
<< "Match result: "
<< std::tr1::regex_match(str_hello, rx_hello)
<< std::endl;
}
--
Summary: TR1 regex with GCC 4.3.0 on cygwin
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: christopher dot kormanyos at al-lighting dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36863