public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Joop Boonen" <joop.boonen@boonen.org>
To: gcc-help@gcc.gnu.org
Cc: gcc-bugs@gcc.gnu.org
Subject: Possible armv7 hardfp try catch bug
Date: Sun, 06 Nov 2011 10:45:00 -0000	[thread overview]
Message-ID: <74e099b0fc291482d4a2ce9517f53653.squirrel@www.boonen.name> (raw)

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.

                 reply	other threads:[~2011-11-06 10:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74e099b0fc291482d4a2ce9517f53653.squirrel@www.boonen.name \
    --to=joop.boonen@boonen.org \
    --cc=gcc-bugs@gcc.gnu.org \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).