m4n71k0r

Untitled

Jun 7th, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. c:\work\c++>clang++ --analyze -std=c++11 test.cpp
  2. In file included from test.cpp:4:
  3. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:240:10: error: cannot cast from lvalue of type 'const long long' to
  4.       rvalue reference type 'rep' (aka 'long long &&'); types are not compatible
  5.           : __r(static_cast<rep>(__rep)) { }
  6.                 ^~~~~~~~~~~~~~~~~~~~~~~
  7. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:128:13: note: in instantiation of function template specialization
  8.       'std::chrono::duration<long long &&, std::ratio<1, 1000000> >::duration<long long, void>' requested here
  9.             return _ToDur(static_cast<__to_rep>(__d.count()));
  10.                    ^
  11. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:182:9: note: in instantiation of function template specialization
  12.       'std::chrono::__duration_cast_impl<std::chrono::duration<long long &&, std::ratio<1, 1000000>>, std::ratio<1, 1>,
  13.      long long &&, true, true>::__cast<long long, std::ratio<1, 1000000> >' requested here
  14.         return __dc::__cast(__d);
  15.                ^
  16. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:247:10: note: in instantiation of function template specialization
  17.       'std::chrono::duration_cast<std::chrono::duration<long long &&, std::ratio<1, 1000000>>, long long, std::ratio<1,
  18.      1000000> >' requested here
  19.           : __r(duration_cast<duration>(__d).count()) { }
  20.                 ^
  21. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:466:9: note: in instantiation of function template specialization
  22.       'std::chrono::duration<long long &&, std::ratio<1, 1000000> >::duration<long long, std::ratio<1, 1000000>, void>'
  23.       requested here
  24.         return __ct(__lhs).count() < __ct(__rhs).count();
  25.                ^
  26. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:667:7: note: in instantiation of function template specialization
  27.       'std::chrono::operator<<long long, std::ratio<1, 1000000>, long long, std::ratio<1, 1000000> >' requested here
  28.                     < system_clock::duration::zero(),
  29.                     ^
  30. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:128:13: error: call to implicitly-deleted copy constructor of
  31.       'std::chrono::duration<long long &&, std::ratio<1, 1000000>>'
  32.             return _ToDur(static_cast<__to_rep>(__d.count()));
  33.                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:182:9: note: in instantiation of function template specialization
  35.       'std::chrono::__duration_cast_impl<std::chrono::duration<long long &&, std::ratio<1, 1000000>>, std::ratio<1, 1>,
  36.      long long &&, true, true>::__cast<long long, std::ratio<1, 1000000> >' requested here
  37.         return __dc::__cast(__d);
  38.                ^
  39. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:247:10: note: in instantiation of function template specialization
  40.       'std::chrono::duration_cast<std::chrono::duration<long long &&, std::ratio<1, 1000000>>, long long, std::ratio<1,
  41.      1000000> >' requested here
  42.           : __r(duration_cast<duration>(__d).count()) { }
  43.                 ^
  44. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:466:9: note: in instantiation of function template specialization
  45.       'std::chrono::duration<long long &&, std::ratio<1, 1000000> >::duration<long long, std::ratio<1, 1000000>, void>'
  46.       requested here
  47.         return __ct(__lhs).count() < __ct(__rhs).count();
  48.                ^
  49. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:667:7: note: in instantiation of function template specialization
  50.       'std::chrono::operator<<long long, std::ratio<1, 1000000>, long long, std::ratio<1, 1000000> >' requested here
  51.                     < system_clock::duration::zero(),
  52.                     ^
  53. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:233:12: note: explicitly defaulted function was implicitly deleted
  54.       here
  55.         constexpr duration(const duration&) = default;
  56.                   ^
  57. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:349:6: note: copy constructor of 'duration<long long &&, std::ratio<1,
  58.  
  59.      1000000> >' is implicitly deleted because field '__r' is of rvalue reference type 'rep' (aka 'long long &&')
  60.         rep __r;
  61.             ^
  62. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:182:9: error: call to implicitly-deleted copy constructor of 'typename
  63.  
  64.      enable_if<__is_duration<duration<long long &&, ratio<1, 1000000>> >::value, duration<long long &&, ratio<1,
  65.      1000000>> >::type' (aka 'std::chrono::duration<long long &&, std::ratio<1, 1000000>>')
  66.         return __dc::__cast(__d);
  67.                ^~~~~~~~~~~~~~~~~
  68. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:247:10: note: in instantiation of function template specialization
  69.       'std::chrono::duration_cast<std::chrono::duration<long long &&, std::ratio<1, 1000000>>, long long, std::ratio<1,
  70.      1000000> >' requested here
  71.           : __r(duration_cast<duration>(__d).count()) { }
  72.                 ^
  73. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:466:9: note: in instantiation of function template specialization
  74.       'std::chrono::duration<long long &&, std::ratio<1, 1000000> >::duration<long long, std::ratio<1, 1000000>, void>'
  75.       requested here
  76.         return __ct(__lhs).count() < __ct(__rhs).count();
  77.                ^
  78. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:667:7: note: in instantiation of function template specialization
  79.       'std::chrono::operator<<long long, std::ratio<1, 1000000>, long long, std::ratio<1, 1000000> >' requested here
  80.                     < system_clock::duration::zero(),
  81.                     ^
  82. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:233:12: note: explicitly defaulted function was implicitly deleted
  83.       here
  84.         constexpr duration(const duration&) = default;
  85.                   ^
  86. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:349:6: note: copy constructor of 'duration<long long &&, std::ratio<1,
  87.  
  88.      1000000> >' is implicitly deleted because field '__r' is of rvalue reference type 'rep' (aka 'long long &&')
  89.         rep __r;
  90.             ^
  91. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:255:11: error: rvalue reference to type 'long long' cannot bind to
  92.       lvalue of type 'long long'
  93.         { return __r; }
  94.                  ^~~
  95. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:247:39: note: in instantiation of member function
  96.       'std::chrono::duration<long long &&, std::ratio<1, 1000000> >::count' requested here
  97.           : __r(duration_cast<duration>(__d).count()) { }
  98.                                              ^
  99. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:466:9: note: in instantiation of function template specialization
  100.       'std::chrono::duration<long long &&, std::ratio<1, 1000000> >::duration<long long, std::ratio<1, 1000000>, void>'
  101.       requested here
  102.         return __ct(__lhs).count() < __ct(__rhs).count();
  103.                ^
  104. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:667:7: note: in instantiation of function template specialization
  105.       'std::chrono::operator<<long long, std::ratio<1, 1000000>, long long, std::ratio<1, 1000000> >' requested here
  106.                     < system_clock::duration::zero(),
  107.                     ^
  108. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:666:21: error: static_assert expression is not an integral constant
  109.       expression
  110.       static_assert(system_clock::duration::min()
  111.                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  112. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:666:21: note: undefined function 'operator<<long long, std::ratio<1,
  113.      1000000>, long long, std::ratio<1, 1000000> >' cannot be used in a constant expression
  114. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:460:7: note: declared here
  115.       operator<(const duration<_Rep1, _Period1>& __lhs,
  116.       ^
  117. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:141:40: error: cannot cast from lvalue of type 'const intmax_t'
  118.       (aka 'const long long') to rvalue reference type 'long long &&'; types are not compatible
  119.               static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den)));
  120.                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
  121. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:182:9: note: in instantiation of function template specialization
  122.       'std::chrono::__duration_cast_impl<std::chrono::duration<long long, std::ratio<1, 1>>, std::ratio<1, 1000000>,
  123.      long long &&, true, false>::__cast<long long, std::ratio<1, 1000000> >' requested here
  124.         return __dc::__cast(__d);
  125.                ^
  126. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:679:21: note: in instantiation of function template specialization
  127.       'std::chrono::duration_cast<std::chrono::duration<long long, std::ratio<1, 1>>, long long, std::ratio<1, 1000000>
  128.      >' requested here
  129.         return std::time_t(duration_cast<chrono::seconds>
  130.                            ^
  131. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:154:40: error: cannot cast from lvalue of type 'const intmax_t'
  132.       (aka 'const long long') to rvalue reference type 'long long &&'; types are not compatible
  133.               static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num)));
  134.                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
  135. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:182:9: note: in instantiation of function template specialization
  136.       'std::chrono::__duration_cast_impl<std::chrono::duration<long long, std::ratio<1, 1000000>>, std::ratio<1000000,
  137.      1>, long long &&, false, true>::__cast<long long, std::ratio<1, 1> >' requested here
  138.         return __dc::__cast(__d);
  139.                ^
  140. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:577:22: note: in instantiation of function template specialization
  141.       'std::chrono::duration_cast<std::chrono::duration<long long, std::ratio<1, 1000000>>, long long, std::ratio<1, 1>
  142.      >' requested here
  143.         return __time_point(duration_cast<_ToDur>(__t.time_since_epoch()));
  144.                             ^
  145. c:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\chrono:687:9: note: in instantiation of function template specialization
  146.       'std::chrono::time_point_cast<std::chrono::duration<long long, std::ratio<1, 1000000>>, std::chrono::system_clock,
  147.  
  148.      std::chrono::duration<long long, std::ratio<1, 1>> >' requested here
  149.         return time_point_cast<system_clock::duration>
  150.                ^
  151. 7 errors generated.
Advertisement
Add Comment
Please, Sign In to add comment