Skip to content

Possible compatibility issue with MPFR 4.2.1 #24

@gauravharsha

Description

@gauravharsha

This rudimentary code uses mpreal.h and MPFR libraries for C++. When compiling with

  • gcc-11.2.0, and
  • mpfr 3.1.4,

it works perfectly fine.
But after updating my libraries to

  • gcc-13 / clang-15, and
  • mpfr-4.2.1,

the compiler raises multiple errors related to, I believe, method inheritance.
For instance, the Clang 15 and MPFR-4.2.1 combo raises some of the following errors (among other similar ones):

  1. Dividing two multi-precision templated variables raises the compile-time error
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/complex:706:63: error: no matching function for call to '__constexpr_fabs'
  1. In other places, a division leads to the error
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:607:12: error: no matching function for call to 'isinf'

It is not unlikely that there are problems with the code itself, but the sudden breakdown of the attached code after updating the mpfr library makes me think there could be some incompatibilities introduced in the update. I would appreciate any valuable feedback.

PS: The link appears to be broken. I will instead try to share a simple example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions