Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc 4.8.3

Options
Warnings
Boost 1.64.0
C++1y(GNU)
no pedantic

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.64.0/gcc-4.8.3/include -std=gnu++1y
prog.cc: In instantiation of 'constexpr int g(T) [with T = int]':
prog.cc:24:15:   required from here
prog.cc:14:18: error: request for member 'get' in 'x', which is of non-class type 'int'
     return x.get();
                  ^
prog.cc:15:1: error: body of constexpr function 'constexpr int g(T) [with T = int]' not a return-statement
 }
 ^
prog.cc: In function 'int main()':
prog.cc:20:18: warning: unused variable 'a' [-Wunused-variable]
   decltype(f(0)) a;
                  ^
prog.cc:24:18: warning: unused variable 'b' [-Wunused-variable]
   decltype(g(0)) b;
                  ^
Exit Code:
1