This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Soliciting help with libstdc++ and exceptions


> This isn't strictly a gcc issue, but I'm trying to use libstdc++ v3,
> and I'm finding the combination of CVS gcc and CVS libstdc++ unable to
> throw and catch any exceptions of any kind.
[...]
> Help?!

I can't reproduce your problem. I use libstdc++ from CVS, and gcc
version 2.96 19991214. I compile and run the program

#include <string>
#include <iostream>

using namespace std;

int main()
{
  try{
    throw string("Hallo");
  }catch(string&s){
    cout<<s<<endl;
  }
}

and it prints "Hallo". I can't see anything wrong with that.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]