Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 11.0.0 20200716 (experimental)

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/uniform_int_dist.h:35,
                 from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_algo.h:66,
                 from /opt/wandbox/gcc-head/include/c++/11.0.0/string:52,
                 from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-head/include/c++/11.0.0/iomanip:40,
                 from /opt/wandbox/boost-1.73.0/gcc-head/include/boost/rational.hpp:68,
                 from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/11.0.0/limits: In instantiation of 'struct std::numeric_limits<void()>':
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/rational.hpp:123:7:   required from 'const bool boost::rational_detail::is_compatible_integer<void(), int, void>::value'
/opt/wandbox/boost-1.73.0/gcc-head/include/boost/rational.hpp:184:21:   required by substitution of 'template<class T> constexpr boost::rational<int>::rational(const T&, const typename boost::enable_if_c<boost::rational_detail::is_compatible_integer<T, int, void>::value, void>::type*) [with T = void()]'
prog.cc:9:10:   required from here
/opt/wandbox/gcc-head/include/c++/11.0.0/limits:317:7: error: function returning a function
  317 |       min() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
      |       ^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/limits:321:7: error: function returning a function
  321 |       max() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
      |       ^~~
/opt/wandbox/gcc-head/include/c++/11.0.0/limits:327:7: error: function returning a function
  327 |       lowest() noexcept { return _Tp(); }
      |       ^~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/limits:333:7: error: function returning a function
  333 |       epsilon() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
      |       ^~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/limits:337:7: error: function returning a function
  337 |       round_error() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
      |       ^~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/limits:341:7: error: function returning a function
  341 |       infinity() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
      |       ^~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/limits:346:7: error: function returning a function
  346 |       quiet_NaN() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
      |       ^~~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/limits:351:7: error: function returning a function
  351 |       signaling_NaN() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
      |       ^~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/11.0.0/limits:357:7: error: function returning a function
  357 |       denorm_min() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
      |       ^~~~~~~~~~
Exit Code:
1