Author
anonymous
about 6 years ago
Language
C++
Compiler
gcc HEAD 9.0.1 20190421 (experimental)
Options
Warnings
Optimization
Don't Use Boost
C++2a
no pedantic
Raw compiler options
-pedantic
-pthread
Author
anonymous
about 6 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++2a -pedantic -pthread
prog.cc:4:26: error: 'Value' has not been declared
4 | bool operator() (Value *value) {
| ^~~~~
prog.cc: In member function 'bool TypeChecker::Int64::operator()(int*)':
prog.cc:5:27: error: request for member 'IsInt64' in '* value', which is of non-class type 'int'
5 | return value->IsInt64();
| ^~~~~~~
prog.cc: At global scope:
prog.cc:12:9: error: 'int64_t' does not name a type; did you mean 'Int64'?
12 | int64_t operator() (Value *value) {
| ^~~~~~~
| Int64
prog.cc:18:52: error: expected '>' before '(' token
18 | template <typename T, typename U, bool (*TypeCheck)(Value *), U (*Convert)(Value *)>
| ^
prog.cc:19:27: error: 'Value' was not declared in this scope
19 | T JNTDocumentDecodeNumber(Value *value, char **errorString) {
| ^~~~~
prog.cc:19:34: error: 'value' was not declared in this scope
19 | T JNTDocumentDecodeNumber(Value *value, char **errorString) {
| ^~~~~
prog.cc:19:41: error: expected primary-expression before 'char'
19 | T JNTDocumentDecodeNumber(Value *value, char **errorString) {
| ^~~~
prog.cc:19:60: error: expected ';' before '{' token
19 | T JNTDocumentDecodeNumber(Value *value, char **errorString) {
| ^~
| ;
prog.cc:24:1: error: 'int8_t' does not name a type
24 | int8_t JNTDocumentDecodeInt8(Value *value, char **errorString) {
| ^~~~~~
Exit Code:
1