[Bug libstdc++/43241] New: std::tr1::regex does not link
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 3 00:17:00 GMT 2010
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
More information about the Gcc-bugs
mailing list