Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.39 KB | None | 0 0
  1. anitas@MacBook-Pro-Anita ~/Documents/2rok/JNP4 [14:52:20]
  2. > $ clang -Wall -Wextra -std=c++17 -O2 -lstdc++ test_z_fb.cc [±master ●]
  3. test_z_fb.cc:11:19: error: static_assert expression is not an integral constant expression
  4. static_assert(0 == Fibin<int>::eval<L<0>>());
  5. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  6. test_z_fb.cc:11:24: note: non-constexpr function 'eval<Lit<Fib<0> > >' cannot be used in a constant expression
  7. static_assert(0 == Fibin<int>::eval<L<0>>());
  8. ^
  9. ./fibin.h:267:14: note: declared here
  10. static T eval() {
  11. ^
  12. test_z_fb.cc:12:19: error: static_assert expression is not an integral constant expression
  13. static_assert(1 == Fibin<int>::eval<L<1>>());
  14. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. test_z_fb.cc:12:24: note: non-constexpr function 'eval<Lit<Fib<1> > >' cannot be used in a constant expression
  16. static_assert(1 == Fibin<int>::eval<L<1>>());
  17. ^
  18. ./fibin.h:267:14: note: declared here
  19. static T eval() {
  20. ^
  21. test_z_fb.cc:13:19: error: static_assert expression is not an integral constant expression
  22. static_assert(1 == Fibin<int>::eval<L<2>>());
  23. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  24. test_z_fb.cc:13:24: note: non-constexpr function 'eval<Lit<Fib<2> > >' cannot be used in a constant expression
  25. static_assert(1 == Fibin<int>::eval<L<2>>());
  26. ^
  27. ./fibin.h:267:14: note: declared here
  28. static T eval() {
  29. ^
  30. test_z_fb.cc:14:19: error: static_assert expression is not an integral constant expression
  31. static_assert(2 == Fibin<int>::eval<L<3>>());
  32. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. test_z_fb.cc:14:24: note: non-constexpr function 'eval<Lit<Fib<3> > >' cannot be used in a constant expression
  34. static_assert(2 == Fibin<int>::eval<L<3>>());
  35. ^
  36. ./fibin.h:267:14: note: declared here
  37. static T eval() {
  38. ^
  39. test_z_fb.cc:15:19: error: static_assert expression is not an integral constant expression
  40. static_assert(3 == Fibin<int>::eval<L<4>>());
  41. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  42. test_z_fb.cc:15:24: note: non-constexpr function 'eval<Lit<Fib<4> > >' cannot be used in a constant expression
  43. static_assert(3 == Fibin<int>::eval<L<4>>());
  44. ^
  45. ./fibin.h:267:14: note: declared here
  46. static T eval() {
  47. ^
  48. test_z_fb.cc:16:19: error: static_assert expression is not an integral constant expression
  49. static_assert(5 == Fibin<int>::eval<L<5>>());
  50. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. test_z_fb.cc:16:24: note: non-constexpr function 'eval<Lit<Fib<5> > >' cannot be used in a constant expression
  52. static_assert(5 == Fibin<int>::eval<L<5>>());
  53. ^
  54. ./fibin.h:267:14: note: declared here
  55. static T eval() {
  56. ^
  57. test_z_fb.cc:17:19: error: static_assert expression is not an integral constant expression
  58. static_assert(8 == Fibin<int>::eval<L<6>>());
  59. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  60. test_z_fb.cc:17:24: note: non-constexpr function 'eval<Lit<Fib<6> > >' cannot be used in a constant expression
  61. static_assert(8 == Fibin<int>::eval<L<6>>());
  62. ^
  63. ./fibin.h:267:14: note: declared here
  64. static T eval() {
  65. ^
  66. test_z_fb.cc:18:19: error: static_assert expression is not an integral constant expression
  67. static_assert(13 == Fibin<int>::eval<L<7>>());
  68. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  69. test_z_fb.cc:18:25: note: non-constexpr function 'eval<Lit<Fib<7> > >' cannot be used in a constant expression
  70. static_assert(13 == Fibin<int>::eval<L<7>>());
  71. ^
  72. ./fibin.h:267:14: note: declared here
  73. static T eval() {
  74. ^
  75. test_z_fb.cc:19:19: error: static_assert expression is not an integral constant expression
  76. static_assert(21 == Fibin<int>::eval<L<8>>());
  77. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  78. test_z_fb.cc:19:25: note: non-constexpr function 'eval<Lit<Fib<8> > >' cannot be used in a constant expression
  79. static_assert(21 == Fibin<int>::eval<L<8>>());
  80. ^
  81. ./fibin.h:267:14: note: declared here
  82. static T eval() {
  83. ^
  84. test_z_fb.cc:20:19: error: static_assert expression is not an integral constant expression
  85. static_assert(34 == Fibin<int>::eval<L<9>>());
  86. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  87. test_z_fb.cc:20:25: note: non-constexpr function 'eval<Lit<Fib<9> > >' cannot be used in a constant expression
  88. static_assert(34 == Fibin<int>::eval<L<9>>());
  89. ^
  90. ./fibin.h:267:14: note: declared here
  91. static T eval() {
  92. ^
  93. test_z_fb.cc:21:19: error: static_assert expression is not an integral constant expression
  94. static_assert(55 == Fibin<int>::eval<L<10>>());
  95. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  96. test_z_fb.cc:21:25: note: non-constexpr function 'eval<Lit<Fib<10> > >' cannot be used in a constant expression
  97. static_assert(55 == Fibin<int>::eval<L<10>>());
  98. ^
  99. ./fibin.h:267:14: note: declared here
  100. static T eval() {
  101. ^
  102. test_z_fb.cc:22:19: error: static_assert expression is not an integral constant expression
  103. static_assert(89 == Fibin<int>::eval<L<11>>());
  104. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  105. test_z_fb.cc:22:25: note: non-constexpr function 'eval<Lit<Fib<11> > >' cannot be used in a constant expression
  106. static_assert(89 == Fibin<int>::eval<L<11>>());
  107. ^
  108. ./fibin.h:267:14: note: declared here
  109. static T eval() {
  110. ^
  111. test_z_fb.cc:23:19: error: static_assert expression is not an integral constant expression
  112. static_assert(144 == Fibin<int>::eval<L<12>>());
  113. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  114. test_z_fb.cc:23:26: note: non-constexpr function 'eval<Lit<Fib<12> > >' cannot be used in a constant expression
  115. static_assert(144 == Fibin<int>::eval<L<12>>());
  116. ^
  117. ./fibin.h:267:14: note: declared here
  118. static T eval() {
  119. ^
  120. test_z_fb.cc:24:19: error: static_assert expression is not an integral constant expression
  121. static_assert(233 == Fibin<int>::eval<L<13>>());
  122. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  123. test_z_fb.cc:24:26: note: non-constexpr function 'eval<Lit<Fib<13> > >' cannot be used in a constant expression
  124. static_assert(233 == Fibin<int>::eval<L<13>>());
  125. ^
  126. ./fibin.h:267:14: note: declared here
  127. static T eval() {
  128. ^
  129. test_z_fb.cc:25:19: error: static_assert expression is not an integral constant expression
  130. static_assert(377 == Fibin<int>::eval<L<14>>());
  131. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  132. test_z_fb.cc:25:26: note: non-constexpr function 'eval<Lit<Fib<14> > >' cannot be used in a constant expression
  133. static_assert(377 == Fibin<int>::eval<L<14>>());
  134. ^
  135. ./fibin.h:267:14: note: declared here
  136. static T eval() {
  137. ^
  138. test_z_fb.cc:26:19: error: static_assert expression is not an integral constant expression
  139. static_assert(610 == Fibin<int>::eval<L<15>>());
  140. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  141. test_z_fb.cc:26:26: note: non-constexpr function 'eval<Lit<Fib<15> > >' cannot be used in a constant expression
  142. static_assert(610 == Fibin<int>::eval<L<15>>());
  143. ^
  144. ./fibin.h:267:14: note: declared here
  145. static T eval() {
  146. ^
  147. test_z_fb.cc:27:19: error: static_assert expression is not an integral constant expression
  148. static_assert(987 == Fibin<int>::eval<L<16>>());
  149. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  150. test_z_fb.cc:27:26: note: non-constexpr function 'eval<Lit<Fib<16> > >' cannot be used in a constant expression
  151. static_assert(987 == Fibin<int>::eval<L<16>>());
  152. ^
  153. ./fibin.h:267:14: note: declared here
  154. static T eval() {
  155. ^
  156. test_z_fb.cc:28:19: error: static_assert expression is not an integral constant expression
  157. static_assert(1597 == Fibin<int>::eval<L<17>>());
  158. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  159. test_z_fb.cc:28:27: note: non-constexpr function 'eval<Lit<Fib<17> > >' cannot be used in a constant expression
  160. static_assert(1597 == Fibin<int>::eval<L<17>>());
  161. ^
  162. ./fibin.h:267:14: note: declared here
  163. static T eval() {
  164. ^
  165. test_z_fb.cc:29:19: error: static_assert expression is not an integral constant expression
  166. static_assert(2584 == Fibin<int>::eval<L<18>>());
  167. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  168. test_z_fb.cc:29:27: note: non-constexpr function 'eval<Lit<Fib<18> > >' cannot be used in a constant expression
  169. static_assert(2584 == Fibin<int>::eval<L<18>>());
  170. ^
  171. ./fibin.h:267:14: note: declared here
  172. static T eval() {
  173. ^
  174. fatal error: too many errors emitted, stopping now [-ferror-limit=]
  175. 20 errors generated.
  176.  
  177. anitas@MacBook-Pro-Anita ~/Documents/2rok/JNP4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement