[Bug libstdc++/67403] New: std::regex is not matching

2015-08-30 Thread kirbyfan64sos at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67403

Bug ID: 67403
   Summary: std::regex is not matching
   Product: gcc
   Version: 4.8.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libstdc++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: kirbyfan64sos at gmail dot com
  Target Milestone: ---

Reproducing it is simple:

#include 
#include 
#include 

using namespace std;

int main() {
cout << regex_search(string{"int"}, regex{"int"}) << '\n';
return 0;
}

This *should* print 1, and with libc++ it does. GCC? It prints 0. This had me
practically tearing my hair out trying to figure out what was wrong with my
regexes! :/

I searched for existing bugs related to this, but couldn't find any. I'm sorry
if this is a duplicate...


[Bug libstdc++/67403] std::regex is not matching

2015-08-31 Thread kirbyfan64sos at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67403

--- Comment #2 from Ryan Gonzalez  ---
(In reply to Andrew Pinski from comment #1)
> Iirc regex was not implemented in 4.8.x. Try 4.9 and above.

...but then why are the functions present? I would've preferred a compile-time
error if that is the case.