public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Possible armv7 hardfp try catch bug
@ 2011-11-06 10:45 Joop Boonen
  0 siblings, 0 replies; only message in thread
From: Joop Boonen @ 2011-11-06 10:45 UTC (permalink / raw)
  To: gcc-help; +Cc: gcc-bugs

Hi all,

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?

Regards,

Joop.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-06 10:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-06 10:45 Possible armv7 hardfp try catch bug Joop Boonen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).