[ http://issues.apache.org/jira/browse/STDCXX-76?page=all ] Martin Sebor closed STDCXX-76: ------------------------------
> [MSVC 8.0] std::uncaught_exception() always true > ------------------------------------------------ > > Key: STDCXX-76 > URL: http://issues.apache.org/jira/browse/STDCXX-76 > Project: STDCXX > Type: Bug > Components: 18. Language Support > Versions: 4.1.2 > Environment: MSVC 7.0, 7.1, 8.0 > Reporter: Martin Sebor > Assignee: Martin Sebor > Priority: Critical > Fix For: 4.1.3 > > The program below aborts at runtime when compiled with MSVC 7.1. > $ cat t.cpp && nmake t.exe && PATH=/build/sebor/build-hal/lib ./t.exe > #include <cassert> > #include <exception> > bool uncaught; > struct S { ~S () { uncaught = std::uncaught_exception (); } }; > int main () > { > try { > S s; > throw 0; > } > catch (...) { } > assert (uncaught); > assert (!std::uncaught_exception ()); > } > Microsoft (R) Program Maintenance Utility Version 7.10.3077 > Copyright (C) Microsoft Corporation. All rights reserved. > cl -D_RWCONFIG=15d_msvc_7_1 > -Ic:\contrib\cygwin\build\sebor\dev-hal/include -I.\..\..\..\../include > -Ic:\contrib\cygwin\build\sebor\dev-hal\tests\stdlib\support/../include > -Ic:/contrib/cygwin/build/sebor/dev-hal/include/ansi -I.\..\..\..\.. > -Ic:\contrib\cygwin\build\sebor\dev-hal > -Ic:\contrib\cygwin\build\sebor\dev-hal\tests\stdlib\support -I. -nologo -GX > -MDd -W3 -Zi -GR -GF -GZ -c t.cpp > t.cpp > link -nologo /NODEFAULTLIB:msvcprtd /debug > /LIBPATH:.\..\..\..\..\lib /OUT:t.exe t.obj testx15d_msvc_7_1.lib > tlt15d_msvc_7_1.lib std15d_msvc_7_1.lib user32.lib > Assertion failed: !std::uncaught_exception (), file t.cpp, line 17 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
