[cfe-commits] r152609 - in /cfe/trunk/lib: AST/DeclBase.cpp Sema/SemaLookup.cpp Serialization/ASTWriter.cpp

Alexander Potapenko glider at google.com
Wed Mar 14 09:20:01 PDT 2012


I'm hitting this assertion while building 32-bit Chrome with AddressSanitizer.
Reduced test case which does not require ASan is the following one:


 extern "C" {
                 namespace std __attribute__ ((__visibility__ ("default"))) {
             template<typename _Alloc>     class allocator;
             template<class _CharT>     struct char_traits;
             template<typename _CharT, typename _Traits =
char_traits<_CharT>,            typename _Alloc = allocator<_CharT> >
   class basic_string;
             typedef basic_string<char> string;
             template<typename _CharT, typename _Traits, typename
_Alloc>     class basic_string     {
             typedef typename _CharT_alloc_type::size_type size_type;
              struct _Rep : _Rep_base       {
              _CharT*       _M_data() const       {
              _Rep*       _M_rep() const       {
       return &((reinterpret_cast<_Rep*> (_M_data()))[-1]);
            public:          size_type       size() const       {
       return _M_rep()->_M_length;
                StringPiece(const std:: string& str)     :
ptr_(str.data()), length_(static_cast<int32_t>(str.size())) {

Looks like

More information about the cfe-commits mailing list