Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$ In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/array: In function 'int main()':
prog.cc:6:30: in 'constexpr' expansion of 'a.std::array<int, 5>::at(10)'
/opt/wandbox/gcc-head/include/c++/8.0.0/array:208:36: error: call to non-'constexpr' function 'void std::__throw_out_of_range_fmt(const char*, ...)'
: (std::__throw_out_of_range_fmt(__N("array::at: __n (which is %zu) "
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
">= _Nm (which is %zu)"),
~~~~~~~~~~~~~~~~~~~~~~~~~
__n, _Nm),
~~~~~~~~~
Exit Code:
1