This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60041] Strange behavior


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]