This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40918] uncaught_exception() returns wrong (inverted) value if some exception have crossed a DLL boundary before
- From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2009 04:55:12 -0000
- Subject: [Bug c++/40918] uncaught_exception() returns wrong (inverted) value if some exception have crossed a DLL boundary before
- References: <bug-40918-18006@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from dannysmith at users dot sourceforge dot net 2009-08-05 04:55 -------
(In reply to comment #6)
> (In reply to comment #5)
>
> > Applying Dave Korn's patch mentioned in Comment #2, and linking against
> > libstdc++.dll, I get this with your original testcaase:
> >
> > Expecting 'true', got 'true'
> > Expecting 'false', got 'false'
> >
> Where this patch is supposed to be applied to? trunk?
Yes, it against trunk.
> I have looked through the patches you are referring to and through the source
> in repository. As far as I can see, libsupc++ is still static only, and
> eh_globals.cc is a part of libsupc++, not libstdc++.
libsupc++ is a convenience lib that is included in libstdc++
The fact that test-case
> works correctly for you could be just a coincidence. The more reliable way to
> check for the problem would be to compare the value returned by the
> __cxa_get_globals() when being from the main executable and from the dll
> respectively. I'll prepare the new test case.
The new test case succeeds when I link against a shared libstdc++.
Danny
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40918