These are chat archives for bluescarni/piranha

13th
Sep 2016
Dario Izzo
@darioizzo
Sep 13 2016 15:06
Compiling the current piranha code (main.cpp option only active) with gcc 6.2.1 gives the error:
/home/dario/Documents/piranha/src/mp_integer.hpp:576:9: error: inconsistent deduction forauto’: ‘const int’ and thenconst autoconst auto size0 = _mp_size, size1 = other._mp_size;
While compilation with clang gives the warning:
/home/dario/Documents/piranha/src/detail/atomic_utils.hpp:53:54: warning: braces around scalar initializer [-Wbraced-scalar-init]
                        ::new (static_cast<void *>(m_ptr + i)) value_type(ATOMIC_FLAG_INIT);
                                                                          ^~~~~~~~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.2.1/../../../../include/c++/6.2.1/bits/atomic_base.h:157:26: note: expanded from macro 'ATOMIC_FLAG_INIT'
#define ATOMIC_FLAG_INIT { 0 }
Francesco Biscani
@bluescarni
Sep 13 2016 18:12
The first one is a GCC bug, the second one should not be there in the latest piranha. Is that the latest master branch?
Francesco Biscani
@bluescarni
Sep 13 2016 18:17
both problems should not be there in the current master
Dario Izzo
@darioizzo
Sep 13 2016 18:27
indeed sorry ... my bad probably compiling some old code
I now cloned from scratch and all works ...
Francesco Biscani
@bluescarni
Sep 13 2016 18:28
ok good :) maybe another branch or who knows...