Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.98 KB | None | 0 0
  1. In file included from mich.cpp:3:
  2. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 377 to 121 [-Wconstant-conversion]
  3. return Evaluate<Expr, EmptyEnvironment>::result::value;
  4. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. mich.cpp:57:42: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<14> > >' requested here
  6. static_assert(121 == Fibin<uint8_t>::eval<L<14>>());
  7. ^
  8. In file included from mich.cpp:3:
  9. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 610 to 98 [-Wconstant-conversion]
  10. return Evaluate<Expr, EmptyEnvironment>::result::value;
  11. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12. mich.cpp:58:41: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<15> > >' requested here
  13. static_assert(98 == Fibin<uint8_t>::eval<L<15>>());
  14. ^
  15. In file included from mich.cpp:3:
  16. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 987 to 219 [-Wconstant-conversion]
  17. return Evaluate<Expr, EmptyEnvironment>::result::value;
  18. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19. mich.cpp:59:42: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<16> > >' requested here
  20. static_assert(219 == Fibin<uint8_t>::eval<L<16>>());
  21. ^
  22. In file included from mich.cpp:3:
  23. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 1597 to 61 [-Wconstant-conversion]
  24. return Evaluate<Expr, EmptyEnvironment>::result::value;
  25. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26. mich.cpp:60:41: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<17> > >' requested here
  27. static_assert(61 == Fibin<uint8_t>::eval<L<17>>());
  28. ^
  29. In file included from mich.cpp:3:
  30. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 2584 to 24 [-Wconstant-conversion]
  31. return Evaluate<Expr, EmptyEnvironment>::result::value;
  32. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. mich.cpp:61:41: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<18> > >' requested here
  34. static_assert(24 == Fibin<uint8_t>::eval<L<18>>());
  35. ^
  36. In file included from mich.cpp:3:
  37. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 4181 to 85 [-Wconstant-conversion]
  38. return Evaluate<Expr, EmptyEnvironment>::result::value;
  39. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40. mich.cpp:62:41: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<19> > >' requested here
  41. static_assert(85 == Fibin<uint8_t>::eval<L<19>>());
  42. ^
  43. In file included from mich.cpp:3:
  44. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 6765 to 109 [-Wconstant-conversion]
  45. return Evaluate<Expr, EmptyEnvironment>::result::value;
  46. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  47. mich.cpp:63:42: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<20> > >' requested here
  48. static_assert(109 == Fibin<uint8_t>::eval<L<20>>());
  49. ^
  50. In file included from mich.cpp:3:
  51. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 10946 to 194 [-Wconstant-conversion]
  52. return Evaluate<Expr, EmptyEnvironment>::result::value;
  53. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  54. mich.cpp:64:42: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<21> > >' requested here
  55. static_assert(194 == Fibin<uint8_t>::eval<L<21>>());
  56. ^
  57. In file included from mich.cpp:3:
  58. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 17711 to 47 [-Wconstant-conversion]
  59. return Evaluate<Expr, EmptyEnvironment>::result::value;
  60. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  61. mich.cpp:65:41: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<22> > >' requested here
  62. static_assert(47 == Fibin<uint8_t>::eval<L<22>>());
  63. ^
  64. In file included from mich.cpp:3:
  65. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 28657 to 241 [-Wconstant-conversion]
  66. return Evaluate<Expr, EmptyEnvironment>::result::value;
  67. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. mich.cpp:66:42: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<23> > >' requested here
  69. static_assert(241 == Fibin<uint8_t>::eval<L<23>>());
  70. ^
  71. In file included from mich.cpp:3:
  72. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 46368 to 32 [-Wconstant-conversion]
  73. return Evaluate<Expr, EmptyEnvironment>::result::value;
  74. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  75. mich.cpp:67:41: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<24> > >' requested here
  76. static_assert(32 == Fibin<uint8_t>::eval<L<24>>());
  77. ^
  78. In file included from mich.cpp:3:
  79. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 75025 to 17 [-Wconstant-conversion]
  80. return Evaluate<Expr, EmptyEnvironment>::result::value;
  81. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  82. mich.cpp:68:41: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<25> > >' requested here
  83. static_assert(17 == Fibin<uint8_t>::eval<L<25>>());
  84. ^
  85. In file included from mich.cpp:3:
  86. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 121393 to 49 [-Wconstant-conversion]
  87. return Evaluate<Expr, EmptyEnvironment>::result::value;
  88. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  89. mich.cpp:69:41: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<26> > >' requested here
  90. static_assert(49 == Fibin<uint8_t>::eval<L<26>>());
  91. ^
  92. In file included from mich.cpp:3:
  93. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 196418 to 66 [-Wconstant-conversion]
  94. return Evaluate<Expr, EmptyEnvironment>::result::value;
  95. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  96. mich.cpp:70:41: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<27> > >' requested here
  97. static_assert(66 == Fibin<uint8_t>::eval<L<27>>());
  98. ^
  99. In file included from mich.cpp:3:
  100. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 317811 to 115 [-Wconstant-conversion]
  101. return Evaluate<Expr, EmptyEnvironment>::result::value;
  102. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  103. mich.cpp:71:42: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<28> > >' requested here
  104. static_assert(115 == Fibin<uint8_t>::eval<L<28>>());
  105. ^
  106. In file included from mich.cpp:3:
  107. ./fibin.h:272:16: warning: implicit conversion from 'const unsigned long long' to 'unsigned char' changes value from 514229 to 181 [-Wconstant-conversion]
  108. return Evaluate<Expr, EmptyEnvironment>::result::value;
  109. ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  110. mich.cpp:72:42: note: in instantiation of function template specialization 'Fibin<unsigned char, true>::eval<Lit<Fib<29> > >' requested here
  111. static_assert(181 == Fibin<uint8_t>::eval<L<29>>());
  112. ^
  113. mich.cpp:114:5: error: static_assert failed due to requirement 'Fibin<unsigned char, true>::eval() == 55'
  114. static_assert(Fibin<uint8_t>::eval<If< Eq<L<32>, L<5>>, L<10>, L<11> >>() == 55);
  115. ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  116. In file included from mich.cpp:3:
  117. ./fibin.h:272:58: error: no member named 'value' in 'Invoke<Ref<16>, Lit<Fib<0> > >'
  118. return Evaluate<Expr, EmptyEnvironment>::result::value;
  119. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  120. mich.cpp:171:37: note: in instantiation of function template specialization 'Fibin<int, true>::eval<Let<1325242930, Lit<Fib<9> >, Let<16, Lambda<34, Sum<Ref<1325242930>, Ref<34> > >, Let<1325242930,
  121. Lit<Fib<10> >, Invoke<Ref<16>, Lit<Fib<0> > > > > > >' requested here
  122. static_assert(34 == Fibin<int>::eval<Scoping>());
  123. ^
  124. mich.cpp:171:25: error: static_assert expression is not an integral constant expression
  125. static_assert(34 == Fibin<int>::eval<Scoping>());
  126. ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
  127. In file included from mich.cpp:3:
  128. ./fibin.h:272:58: error: no member named 'value' in 'Invoke<Let<34, Lit<Fib<1> >, Lambda<34, Ref<34> > >, Lit<Fib<3> > >'
  129. return Evaluate<Expr, EmptyEnvironment>::result::value;
  130. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  131. mich.cpp:173:37: note: in instantiation of function template specialization 'Fibin<unsigned int, true>::eval<Invoke<Let<34, Lit<Fib<1> >, Lambda<34, Ref<34> > >, Lit<Fib<3> > > >' requested here
  132. static_assert(2 == Fibin<uint>::eval<Invoke<Let<Var("x"), Lit<Fib<1>>, Lambda<Var("x"), Ref<Var("x")> > >, Lit<Fib<3>> > >());
  133. ^
  134. mich.cpp:173:24: error: static_assert expression is not an integral constant expression
  135. static_assert(2 == Fibin<uint>::eval<Invoke<Let<Var("x"), Lit<Fib<1>>, Lambda<Var("x"), Ref<Var("x")> > >, Lit<Fib<3>> > >());
  136. ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  137. In file included from mich.cpp:3:
  138. ./fibin.h:243:116: error: no type named 'result' in 'Evaluate<Eq<Lambda<34, Ref<34> >, Lambda<34, Ref<34> > >, Environment<16, Lambda<34, Ref<34> >, EmptyEnvironment> >'
  139. typename Evaluate<Eq<typename Evaluate<LeftVal, Env>::result, typename Evaluate<RightVal, Env>::result>, Env>::result typedef result;
  140. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
  141. ./fibin.h:243:14: note: in instantiation of template class 'Evaluate<Eq<Lambda<34, Ref<34> >, Lambda<34, Ref<34> > >, Environment<16, Lambda<34, Ref<34> >, EmptyEnvironment> >' requested here
  142. typename Evaluate<Eq<typename Evaluate<LeftVal, Env>::result, typename Evaluate<RightVal, Env>::result>, Env>::result typedef result;
  143. ^
  144. ./fibin.h:233:35: note: in instantiation of template class 'Evaluate<Eq<Ref<16>, Ref<16> >, Environment<16, Lambda<34, Ref<34> >, EmptyEnvironment> >' requested here
  145. typename Evaluate<If<typename Evaluate<Condition, Env>::result, Then, Else>, Env>::result typedef result;
  146. ^
  147. ./fibin.h:238:14: note: in instantiation of template class 'Evaluate<If<Eq<Ref<16>, Ref<16> >, Lit<Fib<10> >, Lit<Fib<11> > >, Environment<16, Lambda<34, Ref<34> >, EmptyEnvironment> >' requested here
  148. typename Evaluate<Expression, Environment<Variable, typename Evaluate<Value,Env>::result, Env> >::result typedef result;
  149. ^
  150. ./fibin.h:272:16: note: in instantiation of template class 'Evaluate<Let<16, Lambda<34, Ref<34> >, If<Eq<Ref<16>, Ref<16> >, Lit<Fib<10> >, Lit<Fib<11> > > >, EmptyEnvironment>' requested here
  151. return Evaluate<Expr, EmptyEnvironment>::result::value;
  152. ^
  153. mich.cpp:191:29: note: in instantiation of function template specialization 'Fibin<int, true>::eval<Let<16, Lambda<34, Ref<34> >, If<Eq<Ref<16>, Ref<16> >, Lit<Fib<10> >, Lit<Fib<11> > > > >' requested
  154. here
  155. static_assert(55 == FB::eval<FunctionComparison>());
  156. ^
  157. mich.cpp:191:25: error: static_assert expression is not an integral constant expression
  158. static_assert(55 == FB::eval<FunctionComparison>());
  159. ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  160. In file included from mich.cpp:3:
  161. ./fibin.h:272:58: error: no member named 'value' in 'Invoke<Invoke<Lambda<16, Invoke<Lambda<34, Invoke<Ref<34>, Ref<34> > >, Lambda<34, Invoke<Ref<16>, Lambda<11281729, Invoke<Invoke<Ref<34>, Ref<34> >,
  162. Ref<11281729> > > > > > >, Lambda<16, Lambda<24, If<Eq<Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
  163. Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Lit<Fib<1> > > > > > > > > > > > >, Ref<24> >, Ref<24>, Sum<Ref<24>, Invoke<Ref<16>, Sum<Ref<24>, Lit<Fib<3> > > > > > > > >, Lit<Fib<1> > >'
  164. return Evaluate<Expr, EmptyEnvironment>::result::value;
  165. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  166. mich.cpp:219:30: note: in instantiation of function template specialization 'Fibin<unsigned long long, true>::eval<Invoke<Invoke<Lambda<16, Invoke<Lambda<34, Invoke<Ref<34>, Ref<34> > >, Lambda<34,
  167. Invoke<Ref<16>, Lambda<11281729, Invoke<Invoke<Ref<34>, Ref<34> >, Ref<11281729> > > > > > >, Lambda<16, Lambda<24, If<Eq<Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
  168. Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Lit<Fib<1> > > > > > > > > > > > >, Ref<24> >, Ref<24>, Sum<Ref<24>,
  169. Invoke<Ref<16>, Sum<Ref<24>, Lit<Fib<3> > > > > > > > >, Lit<Fib<1> > > >' requested here
  170. Fibin<uint64_t>::eval<Invoke<
  171. ^
  172. mich.cpp:219:13: error: static_assert expression is not an integral constant expression
  173. Fibin<uint64_t>::eval<Invoke<
  174. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  175. In file included from mich.cpp:3:
  176. ./fibin.h:272:58: error: no member named 'value' in 'Invoke<Invoke<Lambda<16, Invoke<Lambda<34, Invoke<Ref<34>, Ref<34> > >, Lambda<34, Invoke<Ref<16>, Lambda<11281729, Invoke<Invoke<Ref<34>, Ref<34> >,
  177. Ref<11281729> > > > > > >, Lambda<16, Lambda<24, If<Eq<Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
  178. Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
  179. Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Lit<Fib<5> > > > > > > > > > > > > > > > > > > > > > > > > > >, Ref<24> >, Ref<24>,
  180. Sum<Ref<24>, Invoke<Ref<16>, Sum<Ref<24>, Lit<Fib<3> > > > > > > > >, Lit<Fib<1> > >'
  181. return Evaluate<Expr, EmptyEnvironment>::result::value;
  182. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  183. mich.cpp:225:30: note: in instantiation of function template specialization 'Fibin<unsigned long long, true>::eval<Invoke<Invoke<Lambda<16, Invoke<Lambda<34, Invoke<Ref<34>, Ref<34> > >, Lambda<34,
  184. Invoke<Ref<16>, Lambda<11281729, Invoke<Invoke<Ref<34>, Ref<34> >, Ref<11281729> > > > > > >, Lambda<16, Lambda<24, If<Eq<Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
  185. Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
  186. Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Lit<Fib<5> > > > >
  187. > > > > > > > > > > > > > > > > > > > > > >, Ref<24> >, Ref<24>, Sum<Ref<24>, Invoke<Ref<16>, Sum<Ref<24>, Lit<Fib<3> > > > > > > > >, Lit<Fib<1> > > >' requested here
  188. Fibin<uint64_t>::eval<Invoke<
  189. ^
  190. mich.cpp:225:13: error: static_assert expression is not an integral constant expression
  191. Fibin<uint64_t>::eval<Invoke<
  192. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  193. 16 warnings and 11 errors generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement