public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Help needed: GCC4.6.2 armv7 hardfp exception try catch issue
@ 2011-11-07  9:28 Joop Boonen
  2011-11-07 15:35 ` Ian Lance Taylor
  0 siblings, 1 reply; 6+ messages in thread
From: Joop Boonen @ 2011-11-07  9:28 UTC (permalink / raw)
  To: gcc-help

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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-07 21:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-07  9:28 Help needed: GCC4.6.2 armv7 hardfp exception try catch issue Joop Boonen
2011-11-07 15:35 ` Ian Lance Taylor
2011-11-07 19:35   ` Joop Boonen
2011-11-07 20:07     ` Ian Lance Taylor
2011-11-07 21:07       ` Joop Boonen
2011-11-07 21:38         ` Ian Lance Taylor

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).