Language
C++
Compiler
gcc 9.2.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 5 years ago
C++
gcc 9.2.0
Author
anonymous
over 5 years ago
$ g++ prog.cc -Wall -Wextra -std=c++17
prog.cc: In member function 'void Derived<T>::h()':
prog.cc:10:5: error: there are no arguments to 'f' that depend on a template parameter, so a declaration of 'f' must be available [-fpermissive]
10 | f();
| ^
prog.cc:10:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)