You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2005/12/05 23:21:08 UTC
[jira] Created: (STDCXX-82) [Intel C++ 8.1/Linux] std::bad_exception not thrown when expected
[Intel C++ 8.1/Linux] std::bad_exception not thrown when expected
-----------------------------------------------------------------
Key: STDCXX-82
URL: http://issues.apache.org/jira/browse/STDCXX-82
Project: STDCXX
Type: Bug
Components: External
Versions: 4.1.2
Environment: Intel C++ 8.1, Linux
Reporter: Martin Sebor
>From https://premier.intel.com/IssueDetail.aspx?IssueID=340929:
----------------------------------------------------------------------
std::bad_exception not thrown when expected
----------------------------------------------------------------------
Issue Number 340929 Issue Status Open
Originator Martin Sebor Submit Date 12/5/2005
Company Rogue Wave Last Update 12/5/2005
Intel Contact GANESH RAO Total Days Open 0
Product Type Development Environment (tools,SDV,EAP)
Product Status
Product Name Intel(R) C++ Compiler for Linux*
----------------------------------------------------------------------
Question
----------------------------------------------------------------------
The program below is expected to run succesffully to completion and exit with the status of 0. When compiled with Intel C++ 8.1 on Linux, it aborts instead. Note that gcc behaves as expected.
$ cat t.cpp && icpc -V t.cpp && ./a.out
#include <cassert>
#include <exception>
void foo () throw (std::bad_exception) { throw 0; }
void bar () { throw ""; }
int main ()
{
std::set_unexpected (bar);
try {
foo ();
}
catch (std::bad_exception&) {
return 0;
}
}
Intel(R) C++ Compiler for 32-bit applications, Version 8.1 Build 20051007Z Package ID: l_cc_pc_8.1.035
Copyright (C) 1985-2005 Intel Corporation. All rights reserved.
Edison Design Group C/C++ Front End, version 3.3 (Oct 7 2005 01:26:35)
Copyright 1988-2003 Edison Design Group, Inc.
GNU ld version 2.14.90.0.4 20030523
Supported emulations:
elf_i386
i386linux
Aborted
--
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