Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Don't Use Boost
C++17
no pedantic
$ g++ prog.cc -Wall -Wextra -std=c++17
Exit Code:
1
Author
anonymous
over 4 years ago
C++
gcc 10.1.0
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -Wextra -std=c++17
prog.cc:11:11: error: no declaration matches 'type_t<T> S<T>::f() const'
11 | type_t<T> S<T>::f() const { }
| ^~~~
prog.cc:4:10: note: candidate is: 'S<T>::type S<T>::f() const'
4 | type f() const;
| ^
prog.cc:2:8: note: 'struct S<T>' defined here
2 | struct S {
| ^