[Bug c++/60041] Strange behavior

qroc.work at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Feb 3 22:33:00 GMT 2014


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

--- Comment #3 from qRoC <qroc.work at gmail dot com> ---
cout<<f3->i_<<endl; 
Print "segmentation fault", is normal. 

But this code in function:

void test1()
{
    Foo *f2;

    cout<<f2->i_<<endl;
}

print "123".



More information about the Gcc-bugs mailing list