Cpp30 assertion traps trapped traps trapped failed

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: rib/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 -EHsc -Zc:wchar_t -MDd -W3 -Zi -GR -GF -RTC1 -D_CRT_SECURE_NO_DEPRECATE -c t.cpp t.cpp t.cpp(7) : error C2664: 'foo' : cannot convert parameter 1 from 'const type_info' to 'const std::type_info &' Reason: cannot convert from 'const type_info' to 'const std::type_info' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop. [MSVC 8.0] std::uncaught_exception() always true 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 std::numeric_limits<int>::traps = false when integer arithmetic traps The program below aborts. See also the related LWG issue...
View Full Document

Ask a homework question - tutors are online