[Bug libstdc++/64632] runtime error: member call on address 0x0000004318a8 which does not point to an object of type 'ios_base'

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 19 17:43:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64632

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Smaller test case:

#include <fstream>

int main() {
  std::ofstream  m_outFile;
  m_outFile.open("test");
  return m_outFile.good();
}


Gives:

foo.cc:6:24: runtime error: member call on address 0x7fff6ba3da28 which does
not point to an object of type 'basic_ios'
0x7fff6ba3d930: note: object is base class subobject at offset 248 within
object of type 'std::basic_ofstream<char, std::char_traits<char> >'



More information about the Gcc-bugs mailing list