public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "timshen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/67015] "^[a-z0-9][a-z0-9-]*$", std::regex::extended is miscompiled
Date: Wed, 29 Jul 2015 03:46:00 -0000	[thread overview]
Message-ID: <bug-67015-4-TBB4PNwPKN@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-67015-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67015

--- Comment #4 from Tim Shen <timshen at gcc dot gnu.org> ---
Author: timshen
Date: Wed Jul 29 03:45:35 2015
New Revision: 226336

URL: https://gcc.gnu.org/viewcvs?rev=226336&root=gcc&view=rev
Log:
        PR libstdc++/67015
        * include/bits/regex_compiler.h (_Compiler<>::_M_expression_term,
        _BracketMatcher<>::_M_add_collating_element): Change signature
        to make checking the and of bracket expression easier.
        * include/bits/regex_compiler.tcc (_Compiler<>::_M_expression_term):
        Treat '-' as a valid literal if it's at the end of bracket expression.
        * testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
        New testcases.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/regex_compiler.h
    trunk/libstdc++-v3/include/bits/regex_compiler.tcc
   
trunk/libstdc++-v3/testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc


  parent reply	other threads:[~2015-07-29  3:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-26  8:40 [Bug libstdc++/67015] New: " doko at gcc dot gnu.org
2015-07-26  8:41 ` [Bug libstdc++/67015] " doko at gcc dot gnu.org
2015-07-26 10:05 ` rleigh at debian dot org
2015-07-27 11:31 ` doko at gcc dot gnu.org
2015-07-29  3:46 ` timshen at gcc dot gnu.org [this message]
2015-07-29  4:31 ` timshen at gcc dot gnu.org
2015-07-29  4:45 ` timshen at gcc dot gnu.org
2015-07-29  9:34 ` ville.voutilainen at gmail dot com
2015-07-29 21:26 ` timshen at gcc dot gnu.org
2015-07-29 23:58 ` ville.voutilainen at gmail dot com
2015-07-31 22:31 ` i.zaufi at gmail dot com
2015-08-04  8:57 ` redi at gcc dot gnu.org
2015-08-04  8:57 ` redi at gcc dot gnu.org
2015-08-05  4:40 ` timshen at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-67015-4-TBB4PNwPKN@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).