I am facing some weird bugs with using regex on GCC.
GCC produces "1". LLVM produces "0".Code:#include <iostream> #include <regex> int main() { std::regex pattern("[abc][123]", std::regex_constants::extended); std::cout << std::regex_match("a", pattern) << std::endl; }
Am I misunderstanding something or is GCC's regex support horribly broken?
This is with GCC 4.8.3 on OSX.
Thanks