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 testsuite/61061] FAIL: g++.dg/inherit/covariant7.C Date: Tue, 01 Jul 2014 03:15:00 -0000 [thread overview] Message-ID: <bug-61061-4-SsVz8tUc4I@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-61061-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61061 Tim Shen <timshen at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timshen at gcc dot gnu.org --- Comment #2 from Tim Shen <timshen at gcc dot gnu.org> --- (In reply to Tim Shen from comment #1) > Author: timshen > Date: Tue Jul 1 03:05:45 2014 > New Revision: 212185 > > URL: https://gcc.gnu.org/viewcvs?rev=212185&root=gcc&view=rev > Log: > PR libstdc++/61061 > PR libstdc++/61582 > * include/bits/regex_automaton.h (_NFA<>::_M_insert_state): Add > a NFA state limit. If it's exceeded, regex_constants::error_space > will be throwed. > * include/bits/regex_automaton.tcc (_StateSeq<>::_M_clone): Use > map (which is sparse) instead of vector. This reduce n times clones' > cost from O(n^2) to O(n). > * include/std/regex: Add map dependency. > * testsuite/28_regex/algorithms/regex_match/ecma/char/61601.cc: New > testcase. > > > Added: > > trunk/libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/char/61601. > cc > Modified: > trunk/libstdc++-v3/ChangeLog > trunk/libstdc++-v3/include/bits/regex_automaton.h > trunk/libstdc++-v3/include/bits/regex_automaton.tcc > trunk/libstdc++-v3/include/std/regex Oops. Sorry for wrong PR id. >From gcc-bugs-return-455418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 01 03:19:56 2014 Return-Path: <gcc-bugs-return-455418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31060 invoked by alias); 1 Jul 2014 03:19:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 30990 invoked by uid 48); 1 Jul 2014 03:19:50 -0000 From: "timshen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/61601] C++11 regex resource exhaustion Date: Tue, 01 Jul 2014 03:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: timshen at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-61601-4-Wjv4Vpg0HJ@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-61601-4@http.gcc.gnu.org/bugzilla/> References: <bug-61601-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg00009.txt.bz2 Content-length: 1139 https://gcc.gnu.org/bugzilla/show_bug.cgi?ida601 --- Comment #3 from Tim Shen <timshen at gcc dot gnu.org> --- Author: timshen Date: Tue Jul 1 03:05:45 2014 New Revision: 212185 URL: https://gcc.gnu.org/viewcvs?rev!2185&root=gcc&view=rev Log: PR libstdc++/61061 PR libstdc++/61582 * include/bits/regex_automaton.h (_NFA<>::_M_insert_state): Add a NFA state limit. If it's exceeded, regex_constants::error_space will be throwed. * include/bits/regex_automaton.tcc (_StateSeq<>::_M_clone): Use map (which is sparse) instead of vector. This reduce n times clones' cost from O(n^2) to O(n). * include/std/regex: Add map dependency. * testsuite/28_regex/algorithms/regex_match/ecma/char/61601.cc: New testcase. Added: trunk/libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/char/61601.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/regex_automaton.h trunk/libstdc++-v3/include/bits/regex_automaton.tcc trunk/libstdc++-v3/include/std/regex This is copied by hand, because PR 61601 is mistyped to 61601. Now it's fixed in changelog.
next prev parent reply other threads:[~2014-07-01 3:15 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-05-05 7:57 [Bug testsuite/61061] New: " schwab@linux-m68k.org 2014-07-01 3:06 ` [Bug testsuite/61061] " timshen at gcc dot gnu.org 2014-07-01 3:15 ` timshen at gcc dot gnu.org [this message] 2021-09-02 9:48 ` [Bug c++/61061] " pinskia 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-61061-4-SsVz8tUc4I@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: linkBe 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).