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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ 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; 9+ 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] 9+ messages in thread

end of thread, other threads:[~2010-03-03 20:14 UTC | newest]

Thread overview: 9+ 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

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