public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/67403] New: std::regex is not matching
@ 2015-08-30 23:22 kirbyfan64sos at gmail dot com
  2015-08-30 23:31 ` [Bug libstdc++/67403] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: kirbyfan64sos at gmail dot com @ 2015-08-30 23:22 UTC (permalink / raw)
  To: gcc-bugs

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 <iostream>
#include <string>
#include <regex>

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...


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-01 14:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-30 23:22 [Bug libstdc++/67403] New: std::regex is not matching kirbyfan64sos at gmail dot com
2015-08-30 23:31 ` [Bug libstdc++/67403] " pinskia at gcc dot gnu.org
2015-08-31 15:38 ` kirbyfan64sos at gmail dot com
2015-08-31 17:59 ` miyuki at gcc dot gnu.org
2015-09-01 14:47 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).