Skip to content

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

@kiwifb

Description

@kiwifb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions