c++/6287: throwing exceptions across DLL boundaries (cygwin/MinGW)
david.abrahams@rcn.com
david.abrahams@rcn.com
Sat Apr 13 08:46:00 GMT 2002
>Number: 6287
>Category: c++
>Synopsis: throwing exceptions across DLL boundaries (cygwin/MinGW)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 13 08:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: david.abrahams@rcn.com
>Release: 2.95.x -> 3.0.4
>Organization:
>Environment:
cygwin or mingw
>Description:
compile foo.cpp into an executable linked with bar.cpp as a shared lib, then run to produce a crash
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="foo.cpp"
Content-Disposition: inline; filename="foo.cpp"
struct foo {};
extern
#ifdef _WIN32
__declspec(dllimport)
#endif
void bar();
int main()
{
try { bar(); } catch(foo const&) {}
}
More information about the Gcc-prs
mailing list