Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Busted C++ exceptions



I was told privately to update bsd.lib.mk and try again.  Version
1.278 fixed the problem.

Thanks.



On Tue, Apr 29, 2008 at 5:33 PM, Julio M. Merino Vidal 
<jmmv84%gmail.com@localhost> wrote:
> Hello,
>
>  With sources as of today (updated from a 4 day old installation), C++
>  exception handling seems to be busted.  I have tried the following
>  test program on two NetBSD-current/amd64 machines and it raises a
>  SIGABORT at runtime:
>
>  ---- cut here ----
>  #include <iostream>
>
>  int
>  main(void)
>  {
>         try {
>                 throw int(5);
>         } catch (int i) {
>                 std::cout << "Caught " << i << std::endl;
>         }
>
>         return 0;
>  }
>  ---- cut here ----
>
>  Could anyone confirm this and/or knows what may be wrong?
>
>  Thanks.
>
>  --
>  Julio M. Merino Vidal <jmmv84%gmail.com@localhost>
>



-- 
Julio M. Merino Vidal <jmmv84%gmail.com@localhost>


Home | Main Index | Thread Index | Old Index