public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/44680]  New: [4.5/4.6 regression] regex_traits/char/value.cc built with 4.4, run with 4.5's libstdc++ fails
@ 2010-06-26 10:27 doko at ubuntu dot com
  2010-06-26 11:24 ` [Bug libstdc++/44680] " paolo dot carlini at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: doko at ubuntu dot com @ 2010-06-26 10:27 UTC (permalink / raw)
  To: gcc-bugs

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__((unused)) = true;
  std::tr1::regex_traits<char> t;
  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_expressions/regex_traits/char/value.cc execution test

value.exe:
/scratch/packages/gcc/4.4/u/gcc-4.4-4.4.4/src/libstdc++-v3/testsuite/tr1/7_regular_expressions/
regex_traits/char/value.cc:35: void test01(): Assertion `t.value('9', 8) == -1'
failed.

FAIL: tr1/7_regular_expressions/regex_traits/wchar_t/value.cc execution test

value.exe:
/scratch/packages/gcc/4.4/u/gcc-4.4-4.4.4/src/libstdc++-v3/testsuite/tr1/7_regular_expressions/
regex_traits/wchar_t/value.cc:35: void test01(): Assertion `t.value('9', 8) ==
-1' failed.


-- 
           Summary: [4.5/4.6 regression] regex_traits/char/value.cc built
                    with 4.4, run with 4.5's libstdc++ fails
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com


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


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

* [Bug libstdc++/44680] [4.5/4.6 regression] regex_traits/char/value.cc built with 4.4, run with 4.5's libstdc++ fails
  2010-06-26 10:27 [Bug libstdc++/44680] New: [4.5/4.6 regression] regex_traits/char/value.cc built with 4.4, run with 4.5's libstdc++ fails doko at ubuntu dot com
@ 2010-06-26 11:24 ` paolo dot carlini at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-26 11:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo dot carlini at oracle dot com  2010-06-26 11:23 -------
Regex was completely broken / unusable, before yesterday's first seriou stab at
it.


-- 

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=44680


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

end of thread, other threads:[~2010-06-26 11:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-26 10:27 [Bug libstdc++/44680] New: [4.5/4.6 regression] regex_traits/char/value.cc built with 4.4, run with 4.5's libstdc++ fails doko at ubuntu dot com
2010-06-26 11:24 ` [Bug libstdc++/44680] " paolo dot carlini at oracle dot com

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