public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/40918] uncaught_exception() returns wrong (inverted) value if some exception have crossed a DLL boundary before Date: Sun, 02 Aug 2009 08:57:00 -0000 [thread overview] Message-ID: <20090802085733.29163.qmail@sourceware.org> (raw) In-Reply-To: <bug-40918-18006@http.gcc.gnu.org/bugzilla/> ------- Comment #5 from dannysmith at users dot sourceforge dot net 2009-08-02 08:57 ------- (In reply to comment #3) > I'm linking using g++ driver, so shared libgcc is enabled by default in 4.4.0. > I've just tried to enabled shared libstdc++ as described in the Release Notes > to the MinGW GCC 4.4.0 release, which made no difference. > > More over, I modified the test case the following way: I got rid of std::cout > in favor of printf(), added -nodefaultlibs option to the linker and specified > all the required libraries manually. Now libstdc++ is not linked at all > (neither static nor dynamic), the bug is still here. > I cannot comment on the build of libsdc++.dll in the mingw 4.4.0 release since I have not looked at that source. However, your revised testcase -- linking against a static libsupc++ -- would be expected to fail. We can have only one instance of the eh_globals structure defined in libsupc++/eh_globals.cc. This is accomplished by linking both the .exe and the .dll against a shared libstdc++. 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' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40918
next prev parent reply other threads:[~2009-08-02 8:57 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-30 20:18 [Bug c++/40918] New: " andriys at gmail dot com 2009-07-30 20:22 ` [Bug c++/40918] " andriys at gmail dot com 2009-07-31 4:18 ` dannysmith at users dot sourceforge dot net 2009-07-31 6:56 ` andriys at gmail dot com 2009-07-31 6:58 ` andriys at gmail dot com 2009-08-02 8:57 ` dannysmith at users dot sourceforge dot net [this message] 2009-08-04 13:41 ` andriys at gmail dot com 2009-08-04 13:53 ` andriys at gmail dot com 2009-08-05 4:55 ` dannysmith at users dot sourceforge dot net 2010-01-26 12:16 ` [Bug target/40918] " andriys at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090802085733.29163.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).