Author
anonymous
about 6 years ago
Language
C++
Compiler
gcc 8.2.0
Options
Don't Use Boost
C++2a
no pedantic
Raw compiler options
-fconcepts
Author
anonymous
about 6 years ago
$ g++ prog.cc -std=c++2a -fconcepts
prog.cc:19:39: warning: inline function 'constexpr span< <template-parameter-1-1>, <anonymous> >::span(T&) [with T = span<int, 0>; <template-parameter-1-1> = int; long int <anonymous> = 0]' used but never defined
template<SpanOrArray T> constexpr span(T& cont);
^~~~
prog.cc:19:39: warning: inline function 'constexpr span< <template-parameter-1-1>, <anonymous> >::span(T&) [with T = std::array<int, 5>; <template-parameter-1-1> = int; long int <anonymous> = 0]' used but never defined
/tmp/ccR1qrzd.o: In function `main':
prog.cc:(.text+0x17): undefined reference to `span<int, 0l>::span<span<int, 0l> >(span<int, 0l>&)'
prog.cc:(.text+0x2a): undefined reference to `span<int, 0l>::span<std::array<int, 5ul> >(std::array<int, 5ul>&)'
collect2: error: ld returned 1 exit status
Exit Code:
1