Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 86163f885b56436be0b52183d13f21a18f157dcd)

Options
Warnings
Boost 1.73.0
C++14
-pedantic-errors

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++14 -pedantic-errors
prog.cc:10:53: warning: unused parameter 'coords' [-Wunused-parameter]
     T& operator()( depend_v<std::size_t, Sizes>... coords ) 
                                                    ^
prog.cc:13:6: warning: non-void function does not return a value [-Wreturn-type]
     }
     ^
prog.cc:19:8: note: in instantiation of member function 'CTensor<int, 3, 4, 5>::operator()' requested here
        tensor( 1, 2, 3 ) = 5; // Sets the element at (1, 2, 3) to 5.
              ^
2 warnings generated.
Signal:
Illegal instruction