public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/43241]  New: std::tr1::regex does not link
@ 2010-03-03  0:17 pinskia at gcc dot gnu dot org
  2010-03-03  0:20 ` [Bug libstdc++/43241] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-03  0:17 UTC (permalink / raw)
  To: gcc-bugs

A simple testcase:
 #include <tr1/regex>
 int main() {std::tr1::regex r("^$"); }
--- CUT ---
Does not link.  It did with 4.3 though. 
/tmp/ccyEcV0U.o: In function `std::tr1::basic_regex<char,
std::tr1::regex_traits<char> >::basic_regex(char const*, unsigned int)':
t.cc:(.text._ZNSt3tr111basic_regexIcNS_12regex_traitsIcEEEC2EPKcj[_ZNSt3tr111basic_regexIcNS_12regex_traitsIcEEEC5EPKcj]+0x73):
undefined reference to `std::tr1::basic_regex<char,
std::tr1::regex_traits<char> >::_M_compile()'


-- CUT ---
I noticed that std::tr1::basic_regex::_M_compile in 4.3 was just an empty
function in 4.3 but an external function in 4.4 and above.


-- 
           Summary: std::tr1::regex does not link
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241


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

* [Bug libstdc++/43241] std::tr1::regex does not link
  2010-03-03  0:17 [Bug libstdc++/43241] New: std::tr1::regex does not link pinskia at gcc dot gnu dot org
@ 2010-03-03  0:20 ` pinskia at gcc dot gnu dot org
  2010-03-03  0:21 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-03  0:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-03-03 00:20 -------
Oh this change was on purpose:
r143125 | bkoz | 2009-01-06 09:41:02 -0800 (Tue, 06 Jan 2009) | 10 lines

2009-01-05  Benjamin Kosnik  <bkoz@redhat.com>

        * include/tr1_impl/regex: Remove unimplemented function definitions.
        * testsuite/28_regex/init-list.cc: Compile only.
        * testsuite/tr1/7_regular_expressions/regex/cons/char/
        c_string_extended.cc: Same.
        * testsuite/tr1/7_regular_expressions/basic_regex/assign/*: Same.
        * testsuite/tr1/7_regular_expressions/basic_regex/ctors/*: Same.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241


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

* [Bug libstdc++/43241] std::tr1::regex does not link
  2010-03-03  0:17 [Bug libstdc++/43241] New: std::tr1::regex does not link pinskia at gcc dot gnu dot org
  2010-03-03  0:20 ` [Bug libstdc++/43241] " pinskia at gcc dot gnu dot org
@ 2010-03-03  0:21 ` pinskia at gcc dot gnu dot org
  2010-03-03  0:21 ` [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-03  0:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2010-03-03 00:20 -------
http://gcc.gnu.org/ml/gcc-patches/2009-01/msg00227.html for the patch itself.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
  2010-03-03  0:17 [Bug libstdc++/43241] New: std::tr1::regex does not link pinskia at gcc dot gnu dot org
  2010-03-03  0:20 ` [Bug libstdc++/43241] " pinskia at gcc dot gnu dot org
  2010-03-03  0:21 ` pinskia at gcc dot gnu dot org
@ 2010-03-03  0:21 ` pinskia at gcc dot gnu dot org
  2010-03-03  1:16 ` paolo dot carlini at oracle dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-03  0:21 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
            Summary|std::tr1::regex does not    |std::tr1::regex is not fully
                   |link                        |implemented yet


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
  2010-03-03  0:17 [Bug libstdc++/43241] New: std::tr1::regex does not link pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-03-03  0:21 ` [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet pinskia at gcc dot gnu dot org
@ 2010-03-03  1:16 ` paolo dot carlini at oracle dot com
  2010-03-03 19:31 ` bangerth at gmail dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 14+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-03-03  1:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo dot carlini at oracle dot com  2010-03-03 01:16 -------
Yeah, this is not matter for a PR, a *lot* of work is needed for std::regex (at
this point nobody really cares about tr1::regex).


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
  2010-03-03  0:17 [Bug libstdc++/43241] New: std::tr1::regex does not link pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-03-03 19:31 ` bangerth at gmail dot com
@ 2010-03-03 19:31 ` bangerth at gmail dot com
  2010-03-03 20:11 ` paolo dot carlini at oracle dot com
  2010-03-03 20:14 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 14+ messages in thread
From: bangerth at gmail dot com @ 2010-03-03 19:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from bangerth at gmail dot com  2010-03-03 19:31 -------
...is WONTFIX.


-- 

bangerth at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at gmail dot com
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
  2010-03-03  0:17 [Bug libstdc++/43241] New: std::tr1::regex does not link pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-03-03  1:16 ` paolo dot carlini at oracle dot com
@ 2010-03-03 19:31 ` bangerth at gmail dot com
  2010-03-03 19:31 ` bangerth at gmail dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 14+ messages in thread
From: bangerth at gmail dot com @ 2010-03-03 19:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from bangerth at gmail dot com  2010-03-03 19:30 -------
I think INVALID is the wrong resolution of this PR. This clearly is a bug
(if we offer a class we should make sure it can be used), but we may
choose to say that we won't work on this bug. The right resolution therefore...


-- 

bangerth at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
  2010-03-03  0:17 [Bug libstdc++/43241] New: std::tr1::regex does not link pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-03-03 19:31 ` bangerth at gmail dot com
@ 2010-03-03 20:11 ` paolo dot carlini at oracle dot com
  2010-03-03 20:14 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 14+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-03-03 20:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from paolo dot carlini at oracle dot com  2010-03-03 20:10 -------
Bah, frankly WONTFIX doesn't seem correct either: we are not taking about a
*bug* which we are not going to fix. We are talking about a largely
*unimplemented* part of the future C++1x standard. Now, in my opinion, almost
completely *unimplemented* features do not really belong to Bugzilla, it's way
to too early for it.

Unless we want to limit the span of this PR to the TR1 version: in that case,
WONTFIX could be slightly more correct in the sense that we may well never
implement the TR1 version of regex, but frankly it's not sure, it depends on
whether it turns out to be feasible with a decent amount of macros and such.

But I don't care much either way. I wanted only to clarify that the real issue
is known, and we (the library maintainers) we don't consider it a bug, but a
big chunk of work awaiting for somebody volunteering to do it ;)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
  2010-03-03  0:17 [Bug libstdc++/43241] New: std::tr1::regex does not link pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2010-03-03 20:11 ` paolo dot carlini at oracle dot com
@ 2010-03-03 20:14 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-03-03 20:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2010-03-03 20:13 -------
I should mention why I filed this bug, someone asked (on IRC) how to fix up a
link error when using std::tr1::regex.  Of course I looked inside bugzilla
first and did not see any so I did not look into further than that.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
       [not found] <bug-43241-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-09-14 15:37 ` redi at gcc dot gnu.org
@ 2011-09-14 16:03 ` sacolcor at provide dot net
  4 siblings, 0 replies; 14+ messages in thread
From: sacolcor at provide dot net @ 2011-09-14 16:03 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241

--- Comment #12 from Scott A. Colcord <sacolcor at provide dot net> 2011-09-14 15:36:46 UTC ---
As long as std::regex is still on the todo list, that resolves my concern.  And
I would love to be able to help; if you can give me a couple of extra hours
in my day, I'll happily devote them to developing this feature.  :-P


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
       [not found] <bug-43241-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-09-14 15:27 ` redi at gcc dot gnu.org
@ 2011-09-14 15:37 ` redi at gcc dot gnu.org
  2011-09-14 16:03 ` sacolcor at provide dot net
  4 siblings, 0 replies; 14+ messages in thread
From: redi at gcc dot gnu.org @ 2011-09-14 15:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-14 15:26:23 UTC ---
And for std::regex, what would be more useful than just "it's not fully
implemented yet" would be listing what's missing, e.g. I disabled support for
anchors because it was buggy, see PR 49870 (which you'll notice noone has
closed as INVALID or WONTFIX)


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
       [not found] <bug-43241-4@http.gcc.gnu.org/bugzilla/>
  2011-09-14 15:04 ` sacolcor at provide dot net
  2011-09-14 15:14 ` paolo.carlini at oracle dot com
@ 2011-09-14 15:27 ` redi at gcc dot gnu.org
  2011-09-14 15:37 ` redi at gcc dot gnu.org
  2011-09-14 16:03 ` sacolcor at provide dot net
  4 siblings, 0 replies; 14+ messages in thread
From: redi at gcc dot gnu.org @ 2011-09-14 15:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-14 15:13:57 UTC ---
It's a known issue that std::regex is incomplete, as documented in the
libstdc++ manual.  If it makes you feel better file a bug, but it isn't going
to make any difference to anything. We know it's incomplete, we haven't
forgotten, we aren't waiting until someone notices before working on it.  As
Paolo says, contributions would be far more helpful than a bug report.


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
       [not found] <bug-43241-4@http.gcc.gnu.org/bugzilla/>
  2011-09-14 15:04 ` sacolcor at provide dot net
@ 2011-09-14 15:14 ` paolo.carlini at oracle dot com
  2011-09-14 15:27 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 14+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-14 15:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241

--- Comment #9 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-14 15:09:45 UTC ---
tr1::regex is definitely a wontfix. std::regex is a completely different
matter, of course should be implemented, maybe you can help?!?


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

* [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet
       [not found] <bug-43241-4@http.gcc.gnu.org/bugzilla/>
@ 2011-09-14 15:04 ` sacolcor at provide dot net
  2011-09-14 15:14 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 14+ messages in thread
From: sacolcor at provide dot net @ 2011-09-14 15:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43241

Scott A. Colcord <sacolcor at provide dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sacolcor at provide dot net

--- Comment #8 from Scott A. Colcord <sacolcor at provide dot net> 2011-09-14 14:59:01 UTC ---
Now that <regex> has been ratified as part of the C++11 standard, shouldn't
failure to support it be considered a bug?  At the least, it seems like a
WONTFIX status isn't appropriate, because (as I understand it) WONTFIX means
that even if someone were to offer to do the work, there's no interest in
accepting it into the tree.


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

end of thread, other threads:[~2011-09-14 15:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-03  0:17 [Bug libstdc++/43241] New: std::tr1::regex does not link pinskia at gcc dot gnu dot org
2010-03-03  0:20 ` [Bug libstdc++/43241] " pinskia at gcc dot gnu dot org
2010-03-03  0:21 ` pinskia at gcc dot gnu dot org
2010-03-03  0:21 ` [Bug libstdc++/43241] std::tr1::regex is not fully implemented yet pinskia at gcc dot gnu dot org
2010-03-03  1:16 ` paolo dot carlini at oracle dot com
2010-03-03 19:31 ` bangerth at gmail dot com
2010-03-03 19:31 ` bangerth at gmail dot com
2010-03-03 20:11 ` paolo dot carlini at oracle dot com
2010-03-03 20:14 ` pinskia at gcc dot gnu dot org
     [not found] <bug-43241-4@http.gcc.gnu.org/bugzilla/>
2011-09-14 15:04 ` sacolcor at provide dot net
2011-09-14 15:14 ` paolo.carlini at oracle dot com
2011-09-14 15:27 ` redi at gcc dot gnu.org
2011-09-14 15:37 ` redi at gcc dot gnu.org
2011-09-14 16:03 ` sacolcor at provide dot net

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