Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latte-int doesn't compile with gcc-11 #24

Closed
kiwifb opened this issue May 4, 2021 · 1 comment
Closed

latte-int doesn't compile with gcc-11 #24

kiwifb opened this issue May 4, 2021 · 1 comment

Comments

@kiwifb
Copy link

kiwifb commented May 4, 2021

This is due to new behavior in c++17 which is now the default for g++

/bin/sh ../../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../code  -I../../code -DINSTALLDIR=\"/usr/bin\"      -D__STDC_LIMIT_MACROS -D_4ti2_GMP_   -march=native -O2 -pipe -c -o PolyTree.lo PolyTree.cpp
In file included from count.h:35,
                 from count.cpp:26:
ExponentialSubst.h:62:3: error: ISO C++17 does not allow dynamic exception specifications
   62 |   throw(NotGenericException);
      |   ^~~~~
ExponentialSubst.h:67:3: error: ISO C++17 does not allow dynamic exception specifications
   67 |   throw(NotGenericException);
      |   ^~~~~

See https://gcc.gnu.org/gcc-11/porting_to.html in the section on "Dynamic Exception Specifications".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants