Skip to content

build failed in gcc11 #137

Description

@guoyunhe
[   32s] In file included from libretro/dosbox.cpp:38:
[   32s] ./include/setup.h:92:35: error: ISO C++17 does not allow dynamic exception specifications
[   32s]    92 |         Value& operator= (Hex in) throw(WrongType)                { return copy(Value(in));}
[   32s]       |                                   ^~~~~
[   32s] ./include/setup.h:93:35: error: ISO C++17 does not allow dynamic exception specifications
[   32s]    93 |         Value& operator= (int in) throw(WrongType)                { return copy(Value(in));}
[   32s]       |                                   ^~~~~
[   32s] ./include/setup.h:94:36: error: ISO C++17 does not allow dynamic exception specifications
[   32s]    94 |         Value& operator= (bool in) throw(WrongType)               { return copy(Value(in));}
[   32s]       |                                    ^~~~~
[   32s] ./include/setup.h:95:38: error: ISO C++17 does not allow dynamic exception specifications
[   32s]    95 |         Value& operator= (double in) throw(WrongType)             { return copy(Value(in));}
[   32s]       |                                      ^~~~~
[   32s] ./include/setup.h:96:50: error: ISO C++17 does not allow dynamic exception specifications
[   32s]    96 |         Value& operator= (std::string const& in) throw(WrongType) { return copy(Value(in));}
[   32s]       |                                                  ^~~~~
[   32s] ./include/setup.h:97:50: error: ISO C++17 does not allow dynamic exception specifications
[   32s]    97 |         Value& operator= (char const * const in) throw(WrongType) { return copy(Value(in));}
[   32s]       |                                                  ^~~~~
[   32s] ./include/setup.h:98:44: error: ISO C++17 does not allow dynamic exception specifications
[   32s]    98 |         Value& operator= (Value const& in) throw(WrongType)       { return copy(Value(in));}
[   32s]       |                                            ^~~~~
[   32s] ./include/setup.h:101:32: error: ISO C++17 does not allow dynamic exception specifications
[   32s]   101 |         operator bool () const throw(WrongType);
[   32s]       |                                ^~~~~
[   32s] ./include/setup.h:102:31: error: ISO C++17 does not allow dynamic exception specifications
[   32s]   102 |         operator Hex () const throw(WrongType);
[   32s]       |                               ^~~~~
[   32s] ./include/setup.h:103:31: error: ISO C++17 does not allow dynamic exception specifications
[   32s]   103 |         operator int () const throw(WrongType);
[   32s]       |                               ^~~~~
[   32s] ./include/setup.h:104:34: error: ISO C++17 does not allow dynamic exception specifications
[   32s]   104 |         operator double () const throw(WrongType);
[   32s]       |                                  ^~~~~
[   32s] ./include/setup.h:105:39: error: ISO C++17 does not allow dynamic exception specifications
[   32s]   105 |         operator char const* () const throw(WrongType);
[   32s]       |                                       ^~~~~
[   32s] ./include/setup.h:106:70: error: ISO C++17 does not allow dynamic exception specifications
[   32s]   106 |         bool SetValue(std::string const& in,Etype _type = V_CURRENT) throw(WrongType);
[   32s]       |                                                                      ^~~~~
[   32s] ./include/setup.h:111:38: error: ISO C++17 does not allow dynamic exception specifications
[   32s]   111 |         Value& copy(Value const& in) throw(WrongType);
[   32s]       |                                      ^~~~~
[   32s] make: *** [Makefile.libretro:234: libretro/dosbox.o] Error 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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