[Bug libstdc++/46272] [4.6 Regression]: libstdc++ fails to build due to atomic-constexpr-changes

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 2 17:22:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46272

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-11-02 17:21:53 UTC ---
Similar error on powerpc-darwin:
In file included from
/Users/regress/tbox/native/build/powerpc-apple-darwin9.8.0/libstdc++-v3/include/atomic:42:0,
                 from
/Users/regress/tbox/svn-gcc/libstdc++-v3/include/precompiled/stdc++.h:99:
/Users/regress/tbox/native/build/powerpc-apple-darwin9.8.0/libstdc++-v3/include/bits/atomic_0.h:
In member function 'bool
std::__atomic0::__atomic_base<_IntTp>::compare_exchange_weak(std::__atomic0::__atomic_base<_IntTp>::__int_type&,
std::__atomic0::__atomic_base<_IntTp>::__int_type, std::memory_order,
std::memory_order) [with _ITp = bool,
std::__atomic0::__atomic_base<_IntTp>::__int_type = bool, std::memory_order =
std::memory_order]':
/Users/regress/tbox/native/build/powerpc-apple-darwin9.8.0/libstdc++-v3/include/atomic:111:66:
  instantiated from here
/Users/regress/tbox/native/build/powerpc-apple-darwin9.8.0/libstdc++-v3/include/bits/atomic_0.h:619:9:
error: invalid use of const_cast with type '__i_type', which is not a pointer,
reference, nor a pointer-to-data-member type



More information about the Gcc-bugs mailing list