more symbols fixes

Benjamin Kosnik bkoz@redhat.com
Thu Feb 14 18:07:00 GMT 2002


looking at the first failure, 21_strings/append.cc, I see:

%curr.out 
curr.out: 21_strings/append.cc:68: bool test01(): Assertion `false' failed.
Abort (core dumped)

  // string& append(const string&, size_type pos, size_type n)
  str05.erase();
  str06.erase();
  csz01 = str03.size();
  try {
    str06.append(str03, csz01 + 1, 0);
    VERIFY( false ); 
  }
  catch(std::out_of_range& fail) {
    VERIFY( true );
  }
  catch(...) {
    VERIFY( false ); <--here
  }


Feeling lucky, I look at the symbol table in the executable for append.cc:

%grep logic_error list.out 
0804a9d1 V _ZTSSt11logic_error
0804b01c V _ZTISt11logic_error

%c++filt -n _ZTSSt11logic_error
typeinfo name for std::logic_error

Ah haaaaa....

I added:

    # typeinfo
    _ZTSSt*;

And am re-running tests now.... but all the previously-failing
21_strings/*.cc test pass.

-benjamin







More information about the Libstdc++ mailing list