https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109389
--- Comment #2 from Bernd <frechbengel at gmx dot de> --- @ Jonathan Wakely Thank you for correcting me and setting the issue solved. Sorry for the wrong report. For a long time g++ accepted the -lgmp before the filename, clang++ still does. That's why I thought that this must a bug.