From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97278 invoked by alias); 1 Jun 2015 15:19:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 97225 invoked by uid 48); 1 Jun 2015 15:19:23 -0000 From: "georg@schorsch-tech.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/66359] Regex Fails to match Date: Mon, 01 Jun 2015 15: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.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: georg@schorsch-tech.de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: 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: In-Reply-To: References: 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: 2015-06/txt/msg00063.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66359 --- Comment #3 from georg@schorsch-tech.de --- I tried to apply that revision to gcc-4.9.2. Now i get the following error. g++ -DUSE_STD -std=c++11 main.cpp In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/regex:58:0, from main.cpp:2: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/bits/regex.h:65:5: warning: inline function 'std::shared_ptr > std::__detail::__compile_nfa(const typename _TraitsT::char_type*, const typename _TraitsT::char_type*, const _TraitsT&, std::regex_constants::syntax_option_type) [with _TraitsT = std::regex_traits; typename _TraitsT::char_type = char]' used but never defined __compile_nfa(const typename _TraitsT::char_type* __first, ^ /tmp/ccMywN21.o: In function `std::basic_regex >::basic_regex(char const*, char const*, std::regex_constants::syntax_option_type)': main.cpp:(.text._ZNSt11basic_regexIcSt12regex_traitsIcEEC2IPKcEET_S6_NSt15regex_constants18syntax_option_typeE[_ZNSt11basic_regexIcSt12regex_traitsIcEEC5IPKcEET_S6_NSt15regex_constants18syntax_option_typeE]+0xd5): undefined reference to `std::shared_ptr > > std::__detail::__compile_nfa >(std::regex_traits::char_type const*, std::regex_traits::char_type const*, std::regex_traits const&, std::regex_constants::syntax_option_type)' collect2: error: ld returned 1 exit status I added my applied patch too. I copied the files from your revision to my tree and used git to create that patch.