Help needed: GCC4.6.2 armv7 hardfp exception try catch issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux