This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Help needed: GCC4.6.2 armv7 hardfp exception try catch issue
- From: "Joop Boonen" <joop dot boonen at boonen dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 7 Nov 2011 10:28:28 +0100
- Subject: Help needed: GCC4.6.2 armv7 hardfp exception try catch issue
Hi all,
I need some help, to diagnose a problem.
I'm currently looking into an gmp issue.
A few gmp tests fail.
<for example>
make check-TESTS
make[4]: Entering directory `/usr/src/packages/BUILD/gmp-5.0.2/tests/cxx'
terminate called after throwing an instance of 'std::invalid_argument'
terminate called recursively
/bin/sh: line 5: 333 Aborted ${dir}$tst
FAIL: t-assign
</for example>
What I found it that they fail due to a try catch issue.
gmp-5.0.2/tests/cxx/t-assign.cc
// operator=(const char *) with invalid
{
try {
const char *a = "abc";
mpz_class b;
b = a;
ASSERT_ALWAYS (0); /* should not be reached */
} catch (invalid_argument) {
}
}
On b = a; the exception is generated. But it's not caught.
I don't know if it's related to g++.
Might this be a bug.
Can someone help, how to diagnose this problem?
Regards,
Joop.