Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- anitas@MacBook-Pro-Anita ~/Documents/2rok/JNP4 [14:52:20]
- > $ clang -Wall -Wextra -std=c++17 -O2 -lstdc++ test_z_fb.cc [±master ●]
- test_z_fb.cc:11:19: error: static_assert expression is not an integral constant expression
- static_assert(0 == Fibin<int>::eval<L<0>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:11:24: note: non-constexpr function 'eval<Lit<Fib<0> > >' cannot be used in a constant expression
- static_assert(0 == Fibin<int>::eval<L<0>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:12:19: error: static_assert expression is not an integral constant expression
- static_assert(1 == Fibin<int>::eval<L<1>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:12:24: note: non-constexpr function 'eval<Lit<Fib<1> > >' cannot be used in a constant expression
- static_assert(1 == Fibin<int>::eval<L<1>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:13:19: error: static_assert expression is not an integral constant expression
- static_assert(1 == Fibin<int>::eval<L<2>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:13:24: note: non-constexpr function 'eval<Lit<Fib<2> > >' cannot be used in a constant expression
- static_assert(1 == Fibin<int>::eval<L<2>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:14:19: error: static_assert expression is not an integral constant expression
- static_assert(2 == Fibin<int>::eval<L<3>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:14:24: note: non-constexpr function 'eval<Lit<Fib<3> > >' cannot be used in a constant expression
- static_assert(2 == Fibin<int>::eval<L<3>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:15:19: error: static_assert expression is not an integral constant expression
- static_assert(3 == Fibin<int>::eval<L<4>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:15:24: note: non-constexpr function 'eval<Lit<Fib<4> > >' cannot be used in a constant expression
- static_assert(3 == Fibin<int>::eval<L<4>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:16:19: error: static_assert expression is not an integral constant expression
- static_assert(5 == Fibin<int>::eval<L<5>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:16:24: note: non-constexpr function 'eval<Lit<Fib<5> > >' cannot be used in a constant expression
- static_assert(5 == Fibin<int>::eval<L<5>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:17:19: error: static_assert expression is not an integral constant expression
- static_assert(8 == Fibin<int>::eval<L<6>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:17:24: note: non-constexpr function 'eval<Lit<Fib<6> > >' cannot be used in a constant expression
- static_assert(8 == Fibin<int>::eval<L<6>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:18:19: error: static_assert expression is not an integral constant expression
- static_assert(13 == Fibin<int>::eval<L<7>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:18:25: note: non-constexpr function 'eval<Lit<Fib<7> > >' cannot be used in a constant expression
- static_assert(13 == Fibin<int>::eval<L<7>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:19:19: error: static_assert expression is not an integral constant expression
- static_assert(21 == Fibin<int>::eval<L<8>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:19:25: note: non-constexpr function 'eval<Lit<Fib<8> > >' cannot be used in a constant expression
- static_assert(21 == Fibin<int>::eval<L<8>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:20:19: error: static_assert expression is not an integral constant expression
- static_assert(34 == Fibin<int>::eval<L<9>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:20:25: note: non-constexpr function 'eval<Lit<Fib<9> > >' cannot be used in a constant expression
- static_assert(34 == Fibin<int>::eval<L<9>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:21:19: error: static_assert expression is not an integral constant expression
- static_assert(55 == Fibin<int>::eval<L<10>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:21:25: note: non-constexpr function 'eval<Lit<Fib<10> > >' cannot be used in a constant expression
- static_assert(55 == Fibin<int>::eval<L<10>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:22:19: error: static_assert expression is not an integral constant expression
- static_assert(89 == Fibin<int>::eval<L<11>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:22:25: note: non-constexpr function 'eval<Lit<Fib<11> > >' cannot be used in a constant expression
- static_assert(89 == Fibin<int>::eval<L<11>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:23:19: error: static_assert expression is not an integral constant expression
- static_assert(144 == Fibin<int>::eval<L<12>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:23:26: note: non-constexpr function 'eval<Lit<Fib<12> > >' cannot be used in a constant expression
- static_assert(144 == Fibin<int>::eval<L<12>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:24:19: error: static_assert expression is not an integral constant expression
- static_assert(233 == Fibin<int>::eval<L<13>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:24:26: note: non-constexpr function 'eval<Lit<Fib<13> > >' cannot be used in a constant expression
- static_assert(233 == Fibin<int>::eval<L<13>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:25:19: error: static_assert expression is not an integral constant expression
- static_assert(377 == Fibin<int>::eval<L<14>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:25:26: note: non-constexpr function 'eval<Lit<Fib<14> > >' cannot be used in a constant expression
- static_assert(377 == Fibin<int>::eval<L<14>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:26:19: error: static_assert expression is not an integral constant expression
- static_assert(610 == Fibin<int>::eval<L<15>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:26:26: note: non-constexpr function 'eval<Lit<Fib<15> > >' cannot be used in a constant expression
- static_assert(610 == Fibin<int>::eval<L<15>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:27:19: error: static_assert expression is not an integral constant expression
- static_assert(987 == Fibin<int>::eval<L<16>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:27:26: note: non-constexpr function 'eval<Lit<Fib<16> > >' cannot be used in a constant expression
- static_assert(987 == Fibin<int>::eval<L<16>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:28:19: error: static_assert expression is not an integral constant expression
- static_assert(1597 == Fibin<int>::eval<L<17>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:28:27: note: non-constexpr function 'eval<Lit<Fib<17> > >' cannot be used in a constant expression
- static_assert(1597 == Fibin<int>::eval<L<17>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- test_z_fb.cc:29:19: error: static_assert expression is not an integral constant expression
- static_assert(2584 == Fibin<int>::eval<L<18>>());
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- test_z_fb.cc:29:27: note: non-constexpr function 'eval<Lit<Fib<18> > >' cannot be used in a constant expression
- static_assert(2584 == Fibin<int>::eval<L<18>>());
- ^
- ./fibin.h:267:14: note: declared here
- static T eval() {
- ^
- fatal error: too many errors emitted, stopping now [-ferror-limit=]
- 20 errors generated.
- anitas@MacBook-Pro-Anita ~/Documents/2rok/JNP4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement