[PR44680] regex_traits/char/value.cc built with 4.4, run with 4.5's libstdc++ fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc |
Invalid
|
Medium
|
|||
gcc-4.5 (Ubuntu) |
Won't Fix
|
High
|
Unassigned |
Bug Description
Binary package hint: gcc-4.5
the binary built with 4.4 and run with 4.5's libstdc++ shared library fails:
#include <tr1/regex>
# include <cassert>
# define VERIFY(fn) assert(fn)
// Tests the value() function of the regex_traits<char> class.
void test01()
{
bool test __attribute_
std::
VERIFY( t.value('7', 8) == 7 );
VERIFY( t.value('7', 10) == 7 );
VERIFY( t.value('7', 16) == 7 );
VERIFY( t.value('9', 8) == -1 );
VERIFY( t.value('9', 10) == 9 );
VERIFY( t.value('9', 16) == 9 );
VERIFY( t.value('d', 8) == -1 );
VERIFY( t.value('d', 10) == -1 );
VERIFY( t.value('d', 16) == 13 );
}
int
main()
{
test01();
return 0;
};
FAIL: tr1/7_regular_
value.exe:
/scratch/
regex_traits/
failed.
FAIL: tr1/7_regular_
value.exe:
/scratch/
regex_traits/
-1' failed.
Changed in gcc-4.5 (Ubuntu): | |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: armel toolchain |
Changed in gcc: | |
status: | Unknown → New |
Changed in gcc: | |
status: | New → Invalid |
Changed in gcc: | |
importance: | Unknown → Medium |
upstream comment:
Regex was completely broken / unusable, before yesterday's first seriou stab at
it.